joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140116578
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401ba710]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401165cf
cmp word [rdx], r13w
jne 0x1401165cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401165d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401166f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14011671a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14011660d
mov rdx, r9
mov word [rbx], cx
jmp 0x140116634
cmp r9, r8
jae 0x140116644
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401165ee
jmp 0x1401166f9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401166ee
cmp dword [rsp + 0x80], esi
je 0x1401166ee
lea r8, [0x1401ba710]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401166c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140116696
mov word [rbx], r13w
jmp 0x1401166f6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401166a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401166f6
cmp word [rsp + 0x70], r13w
jne 0x1401166d3
cmp rbx, r14
je 0x140116690
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401162b0
cmp word [rsp + 0x70], r13w
je 0x1401166f9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401ba710]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401166f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401166f9
Function at 0x1401187b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400eef30
sub rsp, rax
mov rax, qword [0x1401b7448]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140112e54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140118803
mov rax, rbp
jmp 0x14011890b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1ba710]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401162a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1ba710]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140118907
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140118907
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401162a8
test rax, rax
js 0x140118907
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140118907
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401188f9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401188f9
cmp byte [rcx], 0xd
jne 0x1401188df
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401188ee
cmp byte [rcx + 1], 0xa
jne 0x1401188ee
inc rcx
jmp 0x1401188ee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1b7a00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401188c1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14011890b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ef780
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140118b2c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140118b42
mov al, 1
jmp 0x140118ba2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140118b53
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140118ba0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140115fc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140118ba0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140118ba0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140118ba0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140118ba2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14011a080
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14011a107
mov rsi, rbx
cmp word [rax], bp
je 0x14011a0c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14011a0b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14011a0ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140111ab4
mov rdi, rax
test rax, rax
je 0x14011a0f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f01c0
mov rbp, rdi
xor ecx, ecx
call fcn.140111764
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14011ccec
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.140110874
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 0x14011cd8d
cmp ebx, dword [rsp + 0x30]
je 0x14011cd86
test esi, esi
je 0x14011cd86
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14011cd61
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14011cd6e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14011cd4b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14011cd72
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14011cd8f
mov eax, 1
jmp 0x14011cd8f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140122600
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401bae30]
cmp eax, 2
je 0x14012265f
lea rcx, [0x1401bae30]
call fcn.140126e30
test al, al
je 0x14012265f
mov qword [rsp + 0x20], rbx
lea rbx, [0x1401bae34]
mov rcx, rbx
mov dword [0x1401bae34], 0
call fcn.140127250
lea r8, [0x1401211e0]
mov qword [0x1401bae38], rbx
mov rdx, rbx
lea rcx, [0x1401bae30]
call fcn.140126e20
mov rbx, qword [rsp + 0x20]
mov rcx, qword [0x1401bae38]
add rsp, 0x28
jmp fcn.140127360

Function at 0x140122a90
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1401bae48]
movzx ebx, cl
cmp eax, 2
je 0x140122af4
lea rcx, [0x1401bae48]
call fcn.140126e30
test al, al
je 0x140122af4
mov qword [rsp + 0x30], rdi
lea rdi, [0x1401bae4c]
mov rcx, rdi
mov dword [0x1401bae4c], 0
call fcn.140127250
lea r8, [0x1401211e0]
mov qword [0x1401bae50], rdi
mov rdx, rdi
lea rcx, [0x1401bae48]
call fcn.140126e20
mov rdi, qword [rsp + 0x30]
mov rcx, qword [0x1401bae50]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140127370

Function at 0x140127250
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x120
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, str.slot_____DWORD_0xFFFFFFFF_
mov dword [rsp + 0x130], 0xffffffff
lea rdx, [rsp + 0x130]
mov dword [rbx], eax
mov rcx, rbx
call fcn.140127090
mov qword [rsp + 0x138], rax
test rax, rax
je 0x1401272bc
lea r9, [rsp + 0x138]
mov r8d, 0x10
lea rdx, [0x14019d170]
lea rcx, [rsp + 0x20]
call fcn.1400712f0
lea rcx, [rsp + 0x20]
call fcn.1400713f0
add rsp, 0x120
pop rbx
ret
Function at 0x140127370
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x120
mov ecx, dword [rcx]
xor ebx, ebx
mov dword [rsp + 0x140], ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1401273d5
call fcn.140071fb0
cmp eax, 4
jg 0x1401273c6
lea r9d, [rbx + 4]
lea r8d, [rbx + 0x22]
lea rdx, str.X:_rgsc_streams_sdk_release_16_src_rgscipc_base_thread_local_win.cc
lea rcx, [rsp + 0x20]
call fcn.140071390
lea rdx, str.Failed_to_TlsSetValue__.
lea rcx, [rax + 8]
call fcn.140001280
mov ebx, 1
test bl, 1
je 0x1401273d5
lea rcx, [rsp + 0x20]
call fcn.1400713f0
add rsp, 0x120
pop rbx
ret
Function at 0x140ed5d70
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ed5d7a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ed5da3
pop rbp
sub rbp, 0x33
sub rbp, 0xed5d70
sub rsp, 0x20
jmp 0x140ed5dc2
mov rax, 0xed5d70
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x31ef55c6
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ed5de1
jmp 0x140ed5df8
mov cs, word [rdi + 0x2f]
cli
mov dh, 0xc6
mov es, word [rdi + 7]
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004530]
mov dword [rax], 1
mov rax, qword [0x140004540]
mov dword [rax], 1
mov rax, qword [0x140004550]
mov dword [rax], 1
mov rax, qword [0x1400044e0]
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 0x1400015e0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x40]
lea rdx, section..rdata
mov ecx, 0x29
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, byte [rdx]
mov byte [rax], cl
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x149
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov rdx, rax
lea rax, [rbp - 0x40]
mov ecx, 0x149
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, qword [rbp + 0x118]
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x1a0
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001a60
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140007108]
test eax, eax
je 0x1400027ca
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140007110]
mov qword [rbp - 8], rax
jmp 0x1400027ae
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 0x1400027a2
cmp qword [rbp - 0x10], 0
je 0x1400027a2
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 0x140002768
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400028d0
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 0x1400028f8
mov eax, 0
jmp 0x140002946
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 0x140002921
mov eax, 0
jmp 0x140002946
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 0x140002941
mov eax, 0
jmp 0x140002946
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000294c
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 0x1400029ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400029c1
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 0x1400029c1
mov rax, qword [rbp - 8]
jmp 0x1400029df
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 0x140002994
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140038610
Capabilities:
Parse pe header

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

Function at 0x1405d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405d81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405d8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d806f
add dl, dl
jne 0x1405d8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d80f6
xor eax, eax
add dl, dl
jne 0x1405d80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d81ad
add dl, dl
jne 0x1405d80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405d80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405d807e
mov eax, 1
add dl, dl
jne 0x1405d8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d80fb
sub eax, ebx
mov ebx, 1
jne 0x1405d814c
mov ecx, 1
add dl, dl
jne 0x1405d812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405d8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d815d
cmp eax, 0x7d00
jae 0x1405d819b
cmp eax, 0x500
jb 0x1405d8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d807e
cmp eax, 0x7f
ja 0x1405d819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405d81d2
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 0x1405d807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400c6d80
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401a6690]
test rax, rax
je 0x1400c6d9f
call rax
mov al, 1
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 0x60], rbx
mov cl, 6
xor ebx, ebx
mov qword [rsp + 0x68], rdi
mov dword [rbp - 0x30], 0x39372e06
mov r9d, ebx
mov dword [rbp - 0x2c], 0x183c2012
movabs rdi, 0x8080808080808081
mov dword [rbp - 0x28], 0x8d4e43
lea r10d, [rbx + 0xa]
nop dword [rax]
nop word [rax + rax]
movsx eax, cl
inc eax
movsxd r8, eax
lea rax, [r9 + 0xa]
imul r8, rax
mov rax, rdi
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, cl
sub r8, rax
movzx eax, r9b
and al, 7
shl al, 3
movzx ecx, al
mov rax, rdi
sar rdx, cl
mov rcx, r10
xor r8b, dl
mul r10
add r10, 0xa
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r9 - 0x2f], r8b
inc r9
cmp r10, 0x6e
jae 0x1400c6e4c
movzx ecx, byte [rbp - 0x30]
jmp 0x1400c6de0
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x25], bl
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r10, rax
test rax, rax
je 0x1400c6f2b
movdqa xmm0, xmmword [0x14018d230]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0xa21dd051
mov word [rbp - 0xc], 0x3a56
lea r9d, [rax + 0x15]
mov byte [rbp - 0xa], al
nop dword [rax + rax]
movsx rcx, byte [rbp - 0x20]
lea eax, [rcx + 1]
movsxd r8, eax
lea rax, [rbx + 0x15]
imul r8, rax
mov rax, rdi
mul r8
shr rdx, 7
imul rax, rdx, 0xff
mov rdx, rcx
sub r8, rax
movzx eax, bl
and al, 7
shl al, 3
movzx ecx, al
mov rax, rdi
sar rdx, cl
mov rcx, r9
xor r8b, dl
mul r9
add r9, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + rbx - 0x1f], r8b
inc rbx
cmp r9, 0x1ce
jb 0x1400c6e90
lea rdx, [rbp - 0x1f]
mov byte [rbp - 0xa], 0
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401a6690], rax
test rax, rax
je 0x1400c6f2b
call rax
mov rbx, qword [rsp + 0x60]
mov al, 1
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
mov rbx, qword [rsp + 0x60]
xor al, al
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x1400c7020
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [0x140197700]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
mov dword [r11 - 0x24], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
movups xmmword [r11 - 0x74], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [r11 - 0x64], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400c70cb
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14012a590
add rsp, 0xf8
ret
mov ecx, 0x3e8
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rsp + 0x60]
lea rcx, [0x1400c6f40]
mov edx, ebx
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14012a590
add rsp, 0xf8
ret
Function at 0x1400cbed0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400cbf31
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400cbef0
mov ecx, dword [r9]
jmp 0x1400cc01b
cmp ecx, 0x4e0
jb 0x1400cc01b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400cbf50
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400cbfa0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400cc1a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x1400cc1b0
mov dword [rcx], 0x270
ret