joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018b30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017770
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018ae8
test byte [rbx + 0x40], 0xc
jne 0x140018a9f
mov eax, dword [0x1400e0d28]
test eax, eax
jne 0x140018ab0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016980
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018ad3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018ad3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018afc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016c70
call fcn.140017820
test rax, rax
mov rbx, rax
jne 0x140018a8f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018b1a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016c70
call fcn.140018990
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018ba0
call fcn.140016740
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018bd8
call fcn.140017770
mov ecx, dword [0x1400b2158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018c30
test esi, esi
je 0x140018bb6
call fcn.140018a70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018c10
mov edx, edi
call fcn.1400167f0
call fcn.140018a70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017770
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018c20
call fcn.140018a70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018a70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017770
mov ecx, dword [0x1400b2158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018b75
call fcn.140017820
mov rbx, rax
jmp 0x140018b75
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018b8e
call fcn.140017820
jmp 0x140018bb6
call fcn.140017820
mov rbx, rax
jmp 0x140018b71

Function at 0x140018c40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017770
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018cb0
test esi, esi
je 0x140018c90
call fcn.140018a70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018cc0
mov edx, esi
call fcn.1400167f0
call fcn.140018a70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018a70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018a70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140017820
mov rbx, rax
jmp 0x140018c61
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c7a
Function at 0x140077300
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140077327
call rbp
cmp dword [rax], 4
jne 0x140077344
mov rcx, rdi
call fcn.140077130
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x140077320
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x250002058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.2500021df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x250002089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x25000206f
add dl, dl
jne 0x250002096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x2500020f6
xor eax, eax
add dl, dl
jne 0x2500020a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x2500021ad
add dl, dl
jne 0x2500020b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2500020c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2500020d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2500020dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x2500020ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x25000207e
mov eax, 1
add dl, dl
jne 0x250002106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x250002113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2500020fb
sub eax, ebx
mov ebx, 1
jne 0x25000214c
mov ecx, 1
add dl, dl
jne 0x25000212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x25000213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x250002123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x25000207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x250002168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x250002175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x25000215d
cmp eax, 0x7d00
jae 0x25000219b
cmp eax, 0x500
jb 0x250002196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x25000207e
cmp eax, 0x7f
ja 0x25000219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x25000207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x2500021d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x25000207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013790
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x140012080
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e140]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400240a2]
call fcn.1400113a2
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea r8, [0x14001109b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012120
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Fail_with_create_Threa_dWith_Error_:__d__n
call fcn.1400111a9
lea rcx, str.Decrypting_payload_n
call fcn.1400111a9
lea r9, [rbp + 0x68]
lea r8, [rbp + 0x48]
mov edx, 0x20
lea rcx, section..data
call fcn.1400113de
test eax, eax
jne 0x140012150
mov eax, 0xffffffff
jmp 0x1400121c6
mov edx, dword [rbp + 0x24]
lea rcx, str._i__Hijacking_Thread_Of_Id_:__d_...
call fcn.1400111a9
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call fcn.14001133e
test eax, eax
jne 0x14001217b
mov eax, 0xffffffff
jmp 0x1400121c6
lea rcx, str.___DONE__n
call fcn.1400111a9
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.1400111a9
call qword [sym.imp.ucrtbased.dll_getchar]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.1400111a9
call qword [sym.imp.ucrtbased.dll_getchar]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001b400]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ae0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b00
xor al, al
jmp 0x140014b81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b13
xor al, al
jmp 0x140014b81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014b3d
xor al, al
jmp 0x140014b81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014b51
xor al, al
jmp 0x140014b81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014b63
xor al, al
jmp 0x140014b81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014b7f
xor al, al
jmp 0x140014b81
mov al, 1
add rsp, 0x38
ret
Function at 0x1400985a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
dec rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rbp - 0x40], 2
mov rax, 0x1a
mov r10, qword [rbp - 0x40]
cqo
idiv r10
mov qword [rbp - 0xc0], rax
mov r10, qword [rbp - 0x40]
add r10, 6
mov qword [rbp - 0x58], r10
mov r10, qword [rbp - 0x40]
add r10, 8
mov qword [rbp - 0x68], r10
mov r10, qword [rbp - 0x58]
add r10, 5
mov qword [rbp - 0x90], r10
mov r10, qword [rbp - 0x40]
add r10, 6
mov qword [rbp - 0x80], r10
movabs r10, 0x3310
mov qword [rbp - 0xd0], r10
mov dword [rbp - 0x38], 0x69751690
mov r10, qword [rbp - 0xd0]
movabs r9, 0x14150
mov r14, r10
imul r14, r9
mov r13d, 0x161b
mov r10d, r13d
movabs r9, 0x367
mov r13, r10
add r13, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
push rbp
movabs al, byte [0x49ea8945a075034c]
movabs r9, 0x5007e
mov r13, r10
add r13, r9
invalid
mov edx, 0x2a35
invalid

Function at 0x1400986f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add esi, edx
mov r10d, dword [rbp - 0x38]
sub r10d, 1
mov dword [rbp - 0x38], r10d
mov edi, 0x1a9a
mov r10, qword [rbp - 0x40]
sub r10, 2
mov dword [rbp - 0x84], r10d
mov dword [rbp - 0x84], edx
sub r14, rdi
mov eax, dword [rbp - 0x84]
mov r10, qword [rbp - 0x68]
add r10, qword [rbp - 0x40]
sub r10, 8
cqo
cdq
idiv r10
mov dword [rbp - 0x44], eax
mov r10d, edi
mov qword [rbp - 0x108], r10
mov rax, 0x1e
mov r10, qword [rbp - 0x68]
cqo
idiv r10
mov r10, qword [rbp - 0x108]
mov r11, r10
add r11, rax
jmp 0x140098711
mov r10d, r11d
mov r10b, byte [r14 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov r9d, dword [rbp - 0x38]
mov r8d, dword [rbp - 0x44]
add r9d, r8d
movzx r9d, r9b
xor r10d, r9d
mov byte [rbp - 0x31], r10b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r14 + r10], r9b
lea r11, [r11 + 1]
mov r10d, r13d
add r10d, edi
cmp r11d, r10d
jb 0x1400986dc
mov rsi, 0x40173335
mov r10d, dword [rbp - 0x84]
lea r10, [r10 + 1]
push rdx
add dword [rcx + rcx*4 - 0x6b], eax
jl 0x140098732
invalid
dec dword [rcx - 0x39]
invalid
add al, ah
invalid
add r12, qword [rbp - 0x60]
add rsi, qword [rbp - 0x60]
mov r10d, r10d
mov r9, qword [rbp - 0x90]
sub r9, 9
cmp r10, r9
jle 0x140098699
mov r10, qword [rbp - 0x58]
mov r15, r10
sub r15, 8
mov r10d, r15d
movabs r9, 0x3f8a0
cmp r10, r9
jge 0x140098789
mov r10d, r15d
mov r9b, byte [rsi + r10]
mov byte [r12 + r10], r9b
lea r15, [r15 + 1]
jmp 0x140098766
mov qword [rbp - 0xa0], 0x401b4535
mov qword [rbp - 0xa8], 0x4033a000
mov r10, qword [rbp - 0x60]
add qword [rbp - 0xa8], r10
mov r10, qword [rbp - 0x60]
add qword [rbp - 0xa0], r10
mov qword [rbp - 0x50], 0x401c4335
movabs r10, 0x8000000
mov qword [rbp - 0xd8], r10
invalid
invalid

Function at 0x1400a2fd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a3108
Function at 0x14000edc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x140036180]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x490], 0xffffffffffffffff
je 0x14000ee55
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x14000ee1c
mov rax, qword [rsp + 0x20]
jmp 0x14000ee5a
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000ee3f
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
jmp 0x14000ee55
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x14000ee1c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140027740
add rsp, 0x488
ret
Function at 0x14000f210
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14000f23f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed:_0x_08X_n
call fcn.140016920
xor al, al
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsp + 0x58], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbp
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14000f250
add rbx, rbx
mov dword [rsp + 0x20], 0x40
mov r8, rbx
mov r9d, 0x3000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x14000f2ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAllocEx_failed:_0x_08X_n
call fcn.140016920
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000f2e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WriteProcessMemory_failed:_0x_08X_n
call fcn.140016920
jmp 0x14000f30a
lea r8, str.LoadLibraryW
mov rcx, rdi
lea rdx, str.kernel32.dll
call fcn.14000ee80
test rax, rax
jne 0x14000f33b
lea rcx, str.Cant_find_LoadLibrary_n
call fcn.140016920
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], 0
mov r8, rbp
mov rdx, rax
call fcn.14000f3d0
mov rcx, rdi
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x14000f3a8
lea rcx, str.StartRoutine_failed_n
call fcn.140016920
mov edx, dword [rsp + 0x50]
lea rcx, str.LastWin32Error:_0x_08X_n
call fcn.140016920
mov rbx, qword [rsp + 0x58]
xor al, al
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
mov rdx, qword [rsp + 0x60]
lea rcx, str.Success__LoadLibrary_returned_0x_p_n
call fcn.140016920
mov rbx, qword [rsp + 0x58]
mov al, 1
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000f750
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140036180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
mov dword [rsp + 0xa0], 0x1c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
nop
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000f8e7
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0xac], eax
jne 0x14000f8e2
lea rdx, str.NtQueryInformationThread
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000f817
xor al, al
jmp 0x14000f8f4
mov r8d, dword [rsp + 0xa8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x58]
mov edx, 9
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x50]
mov dword [rsp + 0x4c], eax
mov r9d, 0x30
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14000f8e2
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x60], rax
jne 0x14000f8e2
lea rdx, str.Suspending_protection_thread
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400019b0
mov qword [rsp + 0x68], rax
lea rdx, [0x14000a0b0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000f8f4
jmp 0x14000f7c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140027740
add rsp, 0xd0
pop rdi
ret
Function at 0x140010360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140036180]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14001039d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400103a4
mov al, 1
jmp 0x1400104fc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140012ec0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140012ec0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140012ee0
movzx eax, al
test eax, eax
je 0x1400103f9
xor al, al
jmp 0x1400104fc
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140010469
cmp dword [rsp + 0x30], 1
je 0x140010475
cmp dword [rsp + 0x30], 3
je 0x1400104ea
jmp 0x1400104fa
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400104c1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400104c1
xor al, al
jmp 0x1400104fc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400104db
mov dword [rsp + 0x34], 1
jmp 0x1400104e3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400104fc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400104fc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140027740
add rsp, 0xa8
ret
Function at 0x140014930
Capabilities:
Create process on windows
Set environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov dword [rsp + 0xa0], 0x68
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdx, str.RUNASINVOKER
lea rcx, str.__COMPAT_LAYER
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140014a79
lea rdx, str.Failed_to_start_the_launcher._Exiting...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400019b0
mov qword [rsp + 0x60], rax
lea rdx, [0x14000a0b0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400019b0
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov qword [rsp + 0x70], rax
lea rdx, [0x14000a0b0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rsp + 0x58], 3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x90]
call fcn.1400013b0
mov rcx, rax
call fcn.14000b7d0
nop
xor al, al
jmp 0x140014a94
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x110
pop rdi
ret