joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000be20
Capabilities:
Parse pe header

Disassembly:
cmp byte [rcx + 0x41], 0
je 0x14000bf2d
xor byte [rcx], 0x21
xor byte [rcx + 1], 0x22
xor byte [rcx + 2], 0x23
xor byte [rcx + 3], 0x24
xor byte [rcx + 4], 0x25
xor byte [rcx + 5], 0x26
xor byte [rcx + 6], 0x27
xor byte [rcx + 7], 0x28
xor byte [rcx + 8], 0x29
xor byte [rcx + 9], 0x2a
xor byte [rcx + 0xa], 0x2b
xor byte [rcx + 0xb], 0x2c
xor byte [rcx + 0xc], 0x2d
xor byte [rcx + 0xd], 0x2e
xor byte [rcx + 0xe], 0x2f
xor byte [rcx + 0xf], 0x30
xor byte [rcx + 0x10], 0x31
xor byte [rcx + 0x11], 0x32
xor byte [rcx + 0x12], 0x33
xor byte [rcx + 0x13], 0x34
xor byte [rcx + 0x14], 0x35
xor byte [rcx + 0x15], 0x36
xor byte [rcx + 0x16], 0x37
xor byte [rcx + 0x17], 0x38
xor byte [rcx + 0x18], 0x39
xor byte [rcx + 0x19], 0x3a
xor byte [rcx + 0x1a], 0x3b
xor byte [rcx + 0x1b], 0x3c
xor byte [rcx + 0x1c], 0x3d
xor byte [rcx + 0x1d], 0x3e
xor byte [rcx + 0x1e], 0x3f
xor byte [rcx + 0x1f], 0x40
xor byte [rcx + 0x20], 0x41
xor byte [rcx + 0x21], 0x42
xor byte [rcx + 0x22], 0x43
xor byte [rcx + 0x23], 0x44
xor byte [rcx + 0x24], 0x45
xor byte [rcx + 0x25], 0x46
xor byte [rcx + 0x26], 0x47
xor byte [rcx + 0x27], 0x48
xor byte [rcx + 0x28], 0x49
xor byte [rcx + 0x29], 0x4a
xor byte [rcx + 0x2a], 0x4b
xor byte [rcx + 0x2b], 0x4c
xor byte [rcx + 0x2c], 0x4d
xor byte [rcx + 0x2d], 0x4e
xor byte [rcx + 0x2e], 0x4f
xor byte [rcx + 0x2f], 0x50
xor byte [rcx + 0x30], 0x51
xor byte [rcx + 0x31], 0x52
xor byte [rcx + 0x32], 0x53
xor byte [rcx + 0x33], 0x54
xor byte [rcx + 0x34], 0x55
xor byte [rcx + 0x35], 0x56
xor byte [rcx + 0x36], 0x57
xor byte [rcx + 0x37], 0x58
xor byte [rcx + 0x38], 0x59
xor byte [rcx + 0x39], 0x5a
xor byte [rcx + 0x3a], 0x5b
xor byte [rcx + 0x3b], 0x5c
xor byte [rcx + 0x3c], 0x5d
xor byte [rcx + 0x3d], 0x5e
xor byte [rcx + 0x3e], 0x5f
xor byte [rcx + 0x3f], 0x60
mov byte [rcx + 0x41], 0
ret

Function at 0x14000cbf0
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1402bc758]
test rax, rax
jne 0x14000ccc4
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14000cc97
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14000cc97
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xd2630a2f
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14000cc92
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14000cc70
cmp r8d, 0x8ce84869
je 0x14000cc9c
test r9d, r9d
jne 0x14000cc50
mov rax, qword [rax]
jmp 0x14000cc20
mov ecx, dword [rbx + 0x24]
mov rdi, qword [rsp + 0x20]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov qword [0x1402bc758], rax
mov ecx, 0xb
add rsp, 0x28
jmp rax
Function at 0x14000d280
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rdx, [rsp + 0x4c]
mov r9, rbx
sub r9, rdx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rdx]
movzx ecx, byte [rdx + r9]
sub r8d, ecx
jne 0x14000d2f5
inc rdx
test ecx, ecx
jne 0x14000d2e0
test r8d, r8d
je 0x14000d337
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x14000d35a
lea rax, [rsp + 0x4c]
mov r8, rbx
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000d333
inc rax
test ecx, ecx
jne 0x14000d320
test edx, edx
jne 0x14000d300
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140021920
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
xor al, al
jmp 0x14000d339

Function at 0x14000d360
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r9, qword [rax + 0x30]
mov qword [rsp + 0x38], r9
movsxd rcx, dword [r9 + 0x3c]
mov rdx, qword [rcx + r9 + 0x88]
mov qword [rsp + 0x60], rdx
mov r11d, edx
add r11, r9
mov qword [rsp + 0x40], r11
shr rdx, 0x20
mov dword [rsp + 0x30], edx
cmp r11, r9
je 0x14000d43a
mov r10d, dword [r11 + 0x18]
mov dword [rsp + 0x20], r10d
nop
mov ecx, r10d
dec r10d
mov dword [rsp + 0x20], r10d
test ecx, ecx
je 0x14000d43a
mov edx, dword [r11 + 0x20]
add rdx, r9
mov ecx, dword [rdx + r10*4]
add rcx, r9
mov qword [rsp + 0x28], rcx
mov r8d, 0xc0eb39c9
nop dword [rax + rax]
movsx edx, byte [rcx]
inc rcx
mov qword [rsp + 0x28], rcx
test dl, dl
jne 0x14000d42e
cmp r8d, 0xf6de4d49
jne 0x14000d42c
mov edx, dword [r11 + 0x1c]
add rdx, r9
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx ecx, word [rcx + r10*2]
mov eax, dword [rdx + rcx*4]
add rax, r9
mov ecx, 0xdeadbeef
call rax
xor al, al
jmp 0x14000d444
jmp 0x14000d3c0
xor edx, r8d
imul r8d, edx, 0x1000193
jmp 0x14000d3f0
mov rax, qword [rax]
jmp 0x14000d380
add rsp, 0x58
ret
Function at 0x14001ea60
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 0x14001eac1
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 0x14001ea80
mov ecx, dword [r9]
jmp 0x14001ebab
cmp ecx, 0x4e0
jb 0x14001ebab
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 0x14001eae0
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 0x14001eb30
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 0x14001fbd0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001fc62
test rbx, rbx
je 0x14001fc28
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001fc12
test eax, eax
jns 0x14001fc83
test rbx, rbx
je 0x14001fc88
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001fd87
test rbx, rbx
jne 0x14001fc8f
xor eax, eax
jmp 0x14001fd87
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14001fd67
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001fce5
lea rcx, [rsp + 0x28]
call fcn.140008b70
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14001fd05
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001fd9d
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001fd5d
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd58
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fde6
call fcn.140021940
inc edi
cmp edi, dword [rbx]
jb 0x14001fcb0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021920
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001fdf2
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fded
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fded
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021940
mov rax, rdi
jmp 0x14001fd7a
Function at 0x140020980
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140020aa1
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140020aa1
test rax, rax
je 0x140020aa1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x140020a03
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x140020aac
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x140020a8f
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x140020a8f
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x140020a68
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x140020a84
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400211e0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x140020a20
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x140020aac
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021920
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400227b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400227fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400227fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400227fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400227fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400227fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140022800
xor al, al
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400190a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r14d, r14d
mov ebx, edx
mov rdi, rcx
lea rdx, [rsp + 0x28]
lea rcx, [0x140001260]
lea r8d, [r14 + 0x30]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, r14d
test rax, rax
lea r8, [0x1400163a0]
movzx edx, bx
cmovne rsi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x140001344
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
lea rdx, [0x1400162a6]
xor r8d, r8d
mov rcx, rdi
mov byte [rdi], r14b
call fcn.140001e40
jmp 0x1400013e6
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000131e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000131e
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14000131e
lea rcx, [rsp + 0x58]
mov r8d, eax
mov rdx, rbx
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], r14b
call fcn.140001e40
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov byte [rdi], r14b
mov rcx, qword [rsp + 0x70]
cmp rcx, 0x10
jae 0x1400013d1
mov r8, qword [rsp + 0x68]
inc r8
je 0x1400013d9
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140002e10
mov rcx, qword [rsp + 0x70]
jmp 0x1400013d9
mov rax, qword [rsp + 0x58]
mov qword [rdi], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x18], rcx
mov qword [rdi + 0x10], rax
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002cd0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001410
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor bpl, bpl
call fcn.140001d00
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
cmp eax, 0x21
jge 0x14000148c
cmp edi, 5
jg 0x14000148c
mov rcx, rbx
inc edi
call fcn.140001d00
lea rcx, [0x1400162f0]
mov r9d, esi
mov rdx, rax
mov r8d, edi
call fcn.140001250
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.140001d00
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
cmp eax, 0x21
jl 0x140001443
cmp esi, 0x21
je 0x1400014b5
cmp edi, 5
jl 0x1400014b5
cmp qword [rbx + 0x18], 0x10
jb 0x1400014a9
mov rdx, qword [rbx]
lea rcx, [0x140016320]
jmp 0x1400014ce
mov rdx, rbx
lea rcx, [0x140016320]
jmp 0x1400014ce
cmp qword [rbx + 0x18], 0x10
mov bpl, 1
jb 0x1400014c4
mov rdx, qword [rbx]
jmp 0x1400014c7
mov rdx, rbx
lea rcx, [0x140016340]
call fcn.140001250
cmp qword [rbx + 0x18], 0x10
jb 0x1400014e2
mov rcx, qword [rbx]
call fcn.140002cb4
mov rsi, qword [rsp + 0x48]
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
mov rbx, qword [rsp + 0x38]
movzx eax, bpl
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov rbx, rdx
mov rdi, rcx
jb 0x14000152f
mov rcx, qword [rcx]
lea rdx, [0x140016350]
call fcn.140003534
mov rsi, rax
test rax, rax
je 0x14000159e
cmp qword [rbx + 0x18], 0x10
jb 0x14000154f
mov rcx, qword [rbx]
jmp 0x140001552
mov rcx, rbx
mov r8, qword [rbx + 0x10]
mov r9, rax
mov edx, 1
call fcn.140003704
mov rcx, rsi
call fcn.140003810
cmp qword [rdi + 0x18], 0x10
jb 0x14000157a
mov rcx, qword [rdi]
call fcn.140002cb4
xor esi, esi
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
cmp qword [rbx + 0x18], 0x10
jb 0x14000159a
mov rcx, qword [rbx]
call fcn.140002cb4
mov al, 1
jmp 0x1400015cf
cmp qword [rdi + 0x18], 0x10
jb 0x1400015ad
mov rcx, qword [rdi]
call fcn.140002cb4
xor esi, esi
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
cmp qword [rbx + 0x18], 0x10
jb 0x1400015cd
mov rcx, qword [rbx]
call fcn.140002cb4
xor al, al
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140001710
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub rsp, 0x6d8
mov rax, qword [0x1400190a0]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
lea rdx, [rsp + 0x90]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140001893
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x90]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x140001893
lea rdx, [rsp + 0x4b0]
lea rcx, str.COMSPEC
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140001893
lea rdx, str._c_del
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.___nul
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor ecx, ecx
lea rax, str.Open
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
lea rax, [rsp + 0x2a0]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0x40
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140001893
mov rcx, qword [rsp + 0x88]
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor r9d, r9d
lea r8, [rsp + 0x90]
lea edx, [r9 + 5]
lea ecx, [rdx - 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.140002cd0
add rsp, 0x6d8
ret
xor eax, eax
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.140002cd0
add rsp, 0x6d8
ret

Function at 0x1400018b0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x3c]
xor esi, esi
mov rbx, rdx
movzx eax, word [r8 + rcx + 0x14]
movzx r11d, word [r8 + rcx + 6]
lea r10d, [r8 + 0x18]
add r10d, eax
mov rdi, rcx
mov r8d, esi
test r11d, r11d
jle 0x14000192f
lea r9, [0x140016394]
nop dword [rax]
mov edx, r10d
mov rax, rsi
add rdx, rdi
nop dword [rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140001923
cmp rax, 6
jne 0x140001900
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
jb 0x14000195f
mov r9, qword [rbx]
jmp 0x140001962
inc r8d
add r10d, 0x28
cmp r8d, r11d
jl 0x1400018f0
cmp qword [rbx + 0x18], 8
jb 0x14000193e
mov rcx, qword [rbx]
call fcn.140002cb4
xor al, al
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r9, rbx
mov ecx, dword [rdx + 0x14]
lea eax, [rax*2 + 2]
mov rdx, r9
add rcx, rdi
movsxd r8, eax
call fcn.140002e10
cmp qword [rbx + 0x18], 8
jb 0x140001989
mov rcx, qword [rbx]
call fcn.140002cb4
mov al, 1
jmp 0x140001940
Function at 0x140005918
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005780
Function at 0x180019af0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180019b4d
lea rbx, [0x1801a5c10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180019b34
cmp r10, 2
jb 0x180019b34
cmp byte [r9], r8b
jne 0x180019b34
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180019b10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180019b8f
lea rbx, [0x1801a5c10]
cmp r8b, 0x23
jne 0x180019b73
cmp byte [r9], r8b
jne 0x180019b73
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180019b60
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180019cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180019cea
mov qword [r8], 0
lea rdx, [0x1801a5804]
call fcn.180019ba0
mov rbx, rax
test rax, rax
jne 0x180019d0a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180019de1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180019de1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180019de1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180019de1
cmp rdi, 0xffffffffffffffff
je 0x180019de1
mov rax, qword [0x1801fe000]
test rax, rax
je 0x180019d7e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180019de1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180019dce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801fe000]
test rax, rax
je 0x180019dc3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180019dea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180019ddc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180019dec
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18001c820
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1801a5c10]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1801fe000]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x18001c8b6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18002de70
mov eax, ebx
add rsp, 0x20
pop rbx
ret