joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140169a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rsi, r13
mov rbx, qword [r13 + 8]
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140169a9e
mov rsi, rbx
test r15b, r15b
je 0x140169a73
mov rdx, r12
lea rcx, [rbx + 0x20]
call fcn.1400c72d0
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x140169a85
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.1400c72d0
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140169a8f
mov rbx, qword [rbx]
jmp 0x140169a93
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140169a54
mov r10, qword [rsp + 0x70]
mov rbx, rsi
mov rcx, rsi
test dil, dil
je 0x140169b5d
cmp rsi, qword [r13]
jne 0x140169aea
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r10
call fcn.1401692a0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140169bb2
cmp byte [rsi + 0x19], 0
je 0x140169af9
mov rbx, qword [rsi + 0x10]
mov rcx, rbx
jmp 0x140169b5d
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
jne 0x140169b22
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140169b1d
nop
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140169b10
mov rcx, rbx
jmp 0x140169b5d
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x140169b51
mov rdx, rsi
nop
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x140169b51
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x140169b30
cmp byte [rbx + 0x19], 0
jne 0x140169b5d
mov rbx, rax
mov rcx, rax
add rcx, 0x20
mov rdx, r12
call fcn.1400c72d0
shr eax, 0x1f
test al, al
je 0x140169ba7
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1401692a0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140169bb2
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14016e9a4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14016e9b7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140178bc4
lea rdx, [0x1402530f8]
lea rcx, [rsp + 0x20]
call fcn.14018a240
int3

Function at 0x140179594
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402a8454]
xor edx, edx
jmp fcn.14016e9a4

Function at 0x140179f54
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402a8454]
jmp fcn.14016e9a4
Function at 0x14018b050
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1401fa058]
xor ecx, ecx
lea r8, [0x1401fa050]
lea rdx, str.FlsAlloc
call fcn.14018ae78
mov rbx, rax
test rax, rax
je 0x14018b090
mov rcx, rax
call fcn.14015632c
mov rcx, rdi
call rbx
jmp 0x14018b096
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14018b0f8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401fa068]
mov ecx, 2
lea r8, [0x1401fa060]
lea rdx, str.FlsGetValue
call fcn.14018ae78
mov rdi, rax
test rax, rax
je 0x14018b139
mov rcx, rax
call fcn.14015632c
mov ecx, ebx
call rdi
jmp 0x14018b141
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14018b14c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1401fa070]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1401fa068]
call fcn.14018ae78
mov rsi, rax
test rax, rax
je 0x14018b198
mov rcx, rax
call fcn.14015632c
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14018b1a3
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140193718
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401935a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401935a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401935a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401935a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401935a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1401935a3
cmp dword [rcx + 0xf8], 0
je 0x1401935a3
mov ecx, ebx
call fcn.140193644
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140193420
cmp dword [rbp + 0x20], 0
je 0x1401935f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401935f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14019353c
Function at 0x180002b40
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x280
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, qword [0x1800509a0]
xor edx, edx
mov qword [r11 + 8], rbx
xor ebx, ebx
mov qword [r11 + 0x18], rdi
lea ecx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002c45
xor edx, edx
mov dword [rsp + 0x30], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.1800111d0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002c3c
mov qword [rsp + 0x298], rsi
nop
lea rdx, str.CymulateEDRScenarioGenerator.exe
lea rcx, [rsp + 0x5c]
call fcn.180015244
test eax, eax
je 0x180002bea
lea rdx, str.CymulateEDRScenarioExecutor.exe
lea rcx, [rsp + 0x5c]
call fcn.180015244
test eax, eax
jne 0x180002c04
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x180002c1d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002bc0
test rbx, rbx
je 0x180002c34
jmp 0x180002c2b
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x298]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x290]
mov r9, qword [rbp + 0x88]
test r9, r9
je 0x180002c98
lea r8, str..pipe_s_p
xor edx, edx
xor ecx, ecx
call fcn.180002110
inc eax
movsxd rcx, eax
call fcn.18000ef40
mov r8, qword [rbp + 0x88]
lea rdx, str..pipe_s_p
mov rcx, rax
mov qword [rbp + 0x98], rax
call fcn.1800020b0
mov qword [rsp + 0x28], 0
lea r8, [0x180002170]
mov r9, rbp
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x58], rax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000e8c0
add rsp, 0x280
pop rbp
ret
Function at 0x180002ce0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002d8a
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.1800111d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180002d81
nop word [rax + rax]
lea rdx, str.CymulateEDR.exe
lea rcx, [rsp + 0x5c]
call fcn.180015244
mov rcx, rbx
test eax, eax
jne 0x180002d72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x180002da6
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002d50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rdi + 0x80]
lea rdx, str.Log:isEDRProcessRunning:false:_s__n
mov rcx, rdi
call fcn.180002180
xor al, al
jmp 0x180002da6
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.18000e8c0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x180002dd0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x88]
lea r8, str.Global_s_m
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call fcn.180002110
inc eax
movsxd rcx, eax
call fcn.18000ef40
mov r8, qword [rbx + 0x88]
lea rdx, str.Global_s_m
mov rcx, rax
mov rbp, rax
call fcn.1800020b0
cmp byte [rbx + 0x50], 0
jne 0x180002f4c
nop word [rax + rax]
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x180002eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180002e73
cmp eax, 5
je 0x180002e73
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.180010794
test rax, rax
je 0x180002f0c
cmp qword [rbx + 0xa8], 0
je 0x180002e98
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002e98
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.180002180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002ef5
mov rcx, qword [rbx + 0x80]
lea rdx, str.APT_SCENARIO
call fcn.180010794
test rax, rax
jne 0x180002ed0
mov rcx, rbx
call fcn.180002ce0
test al, al
je 0x180002f36
cmp qword [rbx + 0xa8], 0
je 0x180002ef5
mov r8, qword [rbx + 0x80]
test r8, r8
je 0x180002ef5
lea rdx, str.KEEPALIVE:_s__n
mov rcx, rbx
call fcn.180002180
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x50], 0
je 0x180002e30
jmp 0x180002f4c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break__if__ulLastError__ERROR_ALREADY_EXISTS__ulLastError__ERROR_ACCESS_DENIED__:_s__n
mov rcx, rbx
call fcn.180002180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002f4c
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_break_if__HANDLE_hMutex__CreateMutexA_0__false__pszAttackMutex__:_s__n
mov rcx, rbx
call fcn.180002180
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_finished:_s__n
mov rcx, rbx
call fcn.180002180
cmp byte [rbx + 0x50], 0
jne 0x180002ffe
mov r8, qword [rbx + 0x80]
lea rdx, str.Log:keepalive_loop_terminating.._:_s__n
mov rcx, rbx
call fcn.180002180
cmp byte [rbx + 0xa0], 0
mov rcx, rbx
jne 0x180002fad
lea rdx, str.Log:TerminateProcess_n
call fcn.180002180
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x180002ffe
lea rdx, str.Log:FreeLibraryAndExitThread_FreeLibraryAndExitThreadReflected_n
call fcn.180002180
mov rdi, qword [rbx + 0x70]
sub rdi, qword [rbx + 0x68]
sar rdi, 3
test edi, edi
je 0x180002ffe
mov qword [rsp + 0x30], rsi
mov esi, edi
shl rsi, 3
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x68]
lea rsi, [rsi - 8]
xor edx, edx
mov rcx, qword [rsi + rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add edi, 0xffffffff
jne 0x180002fe0
mov rsi, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18000e8e0
Function at 0x180004250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x1800043ad
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800043ad
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1800043ad
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1800043ad
mov esi, eax
mov ecx, eax
call fcn.18000ef40
mov rdi, rax
mov r8d, esi
mov rdx, r14
mov rcx, rax
call fcn.180010b10
mov esi, dword [rdi]
lea rcx, [rsi + 1]
call fcn.18000ef40
mov r14, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.1800111d0
lea rdx, [rdi + 4]
mov r8d, esi
mov rcx, r14
call fcn.180010b10
mov rdx, r14
mov rcx, rbx
call fcn.1800043d0
test al, al
je 0x1800043ad
movzx eax, byte [rsi + rdi + 4]
mov byte [rbx + 8], al
test al, al
je 0x1800043a7
lea rcx, [rax + 1]
call fcn.18000ef40
mov qword [rbx], rax
movzx r8d, byte [rbx + 8]
inc r8
xor edx, edx
mov rcx, rax
call fcn.1800111d0
movzx r8d, byte [rbx + 8]
lea rdx, [rdi + 5]
add rdx, rsi
mov rcx, qword [rbx]
call fcn.180010b10
movzx eax, byte [rbx + 8]
add rax, rsi
mov ecx, dword [rax + rdi + 5]
mov dword [rbx + 0x18], ecx
call fcn.18000ef40
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x18]
xor edx, edx
mov rcx, rax
call fcn.1800111d0
mov r8d, dword [rbx + 0x18]
movzx edx, byte [rbx + 8]
add rdx, 9
add rdx, rsi
add rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.180010b10
nop
mov al, 1
jmp 0x1800043ad
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180007110
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1800509a0]
cmp byte [rax + 0x50], 0
jne 0x180007139
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1800509a0]
cmp byte [rax + 0x50], 0
je 0x180007121
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180007150
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.18000ef40
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.1800111d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.mstsc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800071c8
mov rax, qword [0x1800509a0]
cmp byte [rax + 0x50], 0
jne 0x1800071c8
nop
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1800509a0]
cmp byte [rax + 0x50], 0
je 0x1800071b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180007d30
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, r8
mov rsi, rcx
cmp edx, 1
jne 0x180007eb9
mov eax, dword [0x180047080]
lea rcx, [rsp + 0x4f]
movsd xmm0, qword [str.SMBWormDll.dll]
xor edx, edx
mov dword [rsp + 0x48], eax
movzx eax, word [0x180047084]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x180047086]
mov qword [0x1800509a8], r8
mov r8d, 0xf5
mov qword [r11 + 0x10], rbx
mov byte [rsp + 0x4e], al
mov qword [r11 - 0x18], rbp
movsd qword [rsp + 0x40], xmm0
call fcn.1800111d0
mov ecx, 0xc0
call fcn.18000eb84
mov qword [rsp + 0x30], rax
xor ebp, ebp
mov rcx, rax
mov rbx, rax
mov qword [rax + 0x68], rbp
mov qword [rax + 0x70], rbp
mov qword [rax + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [rsp + 0x40]
mov byte [rbx + 0xa0], 1
mov qword [rbx + 0xa8], rax
xor ecx, ecx
lea rax, str.NO_ID
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x98], rbp
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0xb8], rbp
mov byte [rbx + 0x50], bpl
mov word [rbx + 0xb0], bp
call fcn.18001a4a0
mov r9, rsi
mov qword [rsp + 0x28], rbp
lea r8, [0x1800071e0]
mov dword [rbx + 0xb4], eax
xor edx, edx
mov qword [0x1800509a0], rbx
xor ecx, ecx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, qword [rsp + 0x160]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x180007eb1
mov rcx, qword [0x1800509a0]
add rcx, 0x68
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x180007e96
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x180007ea0
lea r8, [rsp + 0x30]
call fcn.180007f00
test rdi, rdi
je 0x180007eb1
cmp rdi, 0x12345678
je 0x180007eb1
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x188]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000e8c0
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x180008540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x180050a30], ebx
je 0x18000859f
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7d0
jae 0x180008591
xor eax, eax
lock cmpxchg dword [0x180050a30], ebx
jne 0x180008576
xchg dword [0x180050a30], ebx
mov rdi, qword [rsp + 0x80]
mov rbx, qword [0x1800509b8]
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rax, [rbx + 1]
mov qword [0x1800509b8], rax
mov dword [0x180050a30], 0
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, str.CYM_EDR__ls_04u_02u_02u_02u_02u_02u_llu
mov dword [rsp + 0x28], edx
lea rdx, [0x180046684]
mov dword [rsp + 0x20], r10d
call fcn.180001780
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000e8c0
add rsp, 0x70
pop rbx
ret
Function at 0x18000b380
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x50]
lea rcx, str._lsEDRDummy.exe
call fcn.180001780
mov rdi, rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18000b4af
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
mov r8d, 0x6400
lea rdx, [0x180040110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000b491
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r15w
jne 0x18000b444
mov rax, qword [rbx + 0x18]
cmp rdx, rax
ja 0x18000b482
mov rsi, rbx
cmp rax, 8
jb 0x18000b463
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.180010b10
mov word [rbx + rsi], r15w
mov bl, 1
jmp 0x18000b4cd
mov r9, rdi
mov rcx, rbx
call fcn.18000c810
mov bl, 1
jmp 0x18000b4cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Log:GetEDRDummyExecutablePath___WriteFile_failed__d_n
mov rcx, qword [0x1800509a0]
call fcn.180002180
jmp 0x18000b4cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Log:GetEDRDummyExecutablePath___CreateFile_failed__d_n
mov rcx, qword [0x1800509a0]
call fcn.180002180
xor bl, bl
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, bl
jmp 0x18000b4e1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000e8c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18002ae50
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 0x18002ae80
xor eax, eax
jmp 0x18002af43
mov rbp, rbx
cmp word [rax], si
je 0x18002aea5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002ae8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002ae88
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.180027b48
movsxd r14, eax
test eax, eax
jne 0x18002aee3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002ae79
mov rcx, r14
call fcn.180025bc0
mov rdi, rax
test rax, rax
jne 0x18002aefc
xor ecx, ecx
call fcn.1800253a0
jmp 0x18002aed8
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.180027b48
test eax, eax
jne 0x18002af2d
mov rcx, rdi
call fcn.1800253a0
jmp 0x18002af37
xor ecx, ecx
call fcn.1800253a0
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

Function at 0x18002d6d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18002366c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18002d779
cmp ebx, dword [rsp + 0x30]
je 0x18002d772
test esi, esi
je 0x18002d772
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002d74d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002d75a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002d737
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002d75e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002d77b
mov eax, 1
jmp 0x18002d77b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret