joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010ed0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002c830
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140016d30]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x14000f54b.126
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1400110c0
test r15, r15
je 0x14001108c
cmp r15, 0x1000
ja 0x1400110e2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x140011060
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140010ff0
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x140011080
add r12, rax
cmp r12, r15
je 0x140011050
jbe 0x140010fa0
jmp 0x1400110ce
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x140010f4e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140005b90
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140005b90
jmp 0x14001108c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14002e650
jmp 0x1400110f6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14002e640
ud2
Function at 0x140015170
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007d388]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400151a8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400151ff
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14001520c
xor edx, edx
xor eax, eax
jmp 0x140015236
cmp eax, 0x103
je 0x140015240
test eax, eax
js 0x14001521f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015236
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007d3e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cff0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006200
mov ecx, 7
int 0x29
ud2

Function at 0x140015290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007d388]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400152c8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140015326
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140015353
test eax, eax
js 0x140015332
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015349
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007d3e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cff0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006200
mov ecx, 7
int 0x29
ud2
Function at 0x14002b390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002b41a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002b410
cmp r11, r10
ja 0x14002b496
cmp r10, rdx
ja 0x14002b4a8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002b412
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002b3f0
jmp 0x14002b477
ja 0x14002b41a
mov r11, r10
cmp rax, r8
jne 0x14002b3b7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002b47b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002b450
mov r8, r10
sub ecx, r9d
jns 0x14002b46e
jmp 0x14002b47d
cmp r10, rdx
je 0x14002b48a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002b47d
xor al, 1
cmp r8, rdx
jne 0x14002b430
jmp 0x14002b47d
xor eax, eax
jmp 0x14002b47d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002e1f0
lea r8, str.0_n_b_
mov rcx, r11
mov rdx, r10
call fcn.14002e650
lea r8, str.0_n_b_
mov rcx, r10
call fcn.14002e640
int3

Function at 0x14002cd64
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call fcn.14016a000
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7d6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000cd00
add rsp, 0x28
jmp 0x14000c65c
Function at 0x1406d6570
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406d66f7
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 0x1406d65a1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d6587
add dl, dl
jne 0x1406d65ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d660e
xor eax, eax
add dl, dl
jne 0x1406d65bd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d66c5
add dl, dl
jne 0x1406d65ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d65db
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d65e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d65f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d6602
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d6596
mov eax, 1
add dl, dl
jne 0x1406d661e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d662b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d6613
sub eax, ebx
mov ebx, 1
jne 0x1406d6664
mov ecx, 1
add dl, dl
jne 0x1406d6646
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d6653
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d663b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6596
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d6680
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d668d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d6675
cmp eax, 0x7d00
jae 0x1406d66b3
cmp eax, 0x500
jb 0x1406d66ae
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6596
cmp eax, 0x7f
ja 0x1406d66b6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6596
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d66ea
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 0x1406d6596
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r15d, dword [0x14004a1c0]
lea r12, [0x140000000]
mov eax, ecx
mov esi, dword [r12 + rax*4 + 0x28780]
mov eax, edx
mov r12d, dword [r12 + rax*4 + 0x287c0]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdi, qword [rcx + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000116c
xor r14d, r14d
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.14001ebf0
mov r8, qword [rbx + 0x40]
mov rax, r14
mov edx, r14d
mov rcx, r8
cmp word [r8], ax
je 0x1400010bc
nop word [rax + rax]
inc rax
lea rcx, [rcx + 2]
cmp word [rcx], dx
jne 0x1400010b0
cmp word [r8 + rax*2], 0x5c
je 0x1400010d6
test rax, rax
jle 0x1400010d6
dec rax
inc edx
cmp word [r8 + rax*2], 0x5c
jne 0x1400010c4
movsxd rcx, edx
test edx, edx
js 0x1400010f5
inc rax
lea rdx, [r8 + rax*2]
lea r8, [rcx + 1]
add r8, r8
lea rcx, [rsp + 0x20]
call fcn.14001efb0
movzx edx, word [rsp + 0x20]
lea rax, [rsp + 0x20]
mov ecx, r14d
test dx, dx
je 0x140001163
nop word [rax + rax]
inc ecx
lea rax, [rax + 2]
cmp word [rax], r14w
jne 0x140001110
test ecx, ecx
je 0x140001163
lea r9, [rsp + 0x20]
mov r8d, r15d
nop dword [rax + rax]
movzx ecx, dx
lea r9, [r9 + 2]
sub dx, 0x61
cmp dx, 0x19
movzx edx, word [r9]
lea eax, [rcx + 0x20]
cmova ecx, eax
imul eax, ecx, 0x1000193
xor r8d, eax
test dx, dx
jne 0x140001130
shr r8d, 2
cmp r8d, esi
je 0x1400011a0
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140001080
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008590
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rbx, qword [rbx + 0x20]
test rbx, rbx
je 0x14000116c
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
je 0x14000116c
add rax, 0x18
je 0x14000116c
add rax, 0x70
je 0x14000116c
mov edi, dword [rax]
add rdi, rbx
je 0x14000116c
mov ebp, dword [rdi + 0x24]
add rbp, rbx
je 0x14000116c
mov r10d, dword [rdi + 0x20]
add r10, rbx
je 0x14000116c
mov esi, dword [rdi + 0x18]
mov r11d, r14d
test esi, esi
je 0x140001247
mov r9d, dword [r10]
mov r8d, r15d
add r9, rbx
movzx edx, byte [r9]
test dl, dl
je 0x140001215
movsx ecx, dl
lea r9, [r9 + 1]
sub dl, 0x61
cmp dl, 0x19
movzx edx, byte [r9]
lea eax, [rcx + 0x20]
cmova ecx, eax
imul eax, ecx, 0x1000193
xor r8d, eax
test dl, dl
jne 0x1400011f1
shr r8d, 2
cmp r8d, r12d
je 0x140001232
inc r11d
add r10, 4
cmp r11d, esi
jb 0x1400011e0
mov rax, r14
jmp 0x14000116e
mov ecx, dword [rdi + 0x1c]
add rcx, rbx
mov eax, r11d
movzx edx, word [rbp + rax*2]
mov r14d, dword [rcx + rdx*4]
add r14, rbx
mov rax, r14
jmp 0x14000116e
Function at 0x140008e50
Capabilities:
Parse pe header

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

Function at 0x14000cbb8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000ca23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ca23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ca23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ca23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ca23
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ca23
cmp dword [rcx + 0xf8], 0
je 0x14000ca23
mov ecx, ebx
call fcn.14000cad4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000c8b0
nop
cmp dword [rbp + 0x20], 0
je 0x14000ca71
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ca7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000c9b4
Function at 0x1400176f4
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 0x14001777b
mov rsi, rbx
cmp word [rax], bp
je 0x14001773a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140017724
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140017720
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140014994
mov rdi, rax
test rax, rax
je 0x140017768
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001efb0
mov rbp, rdi
xor ecx, ecx
call fcn.140013d60
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 0x14001bab8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bace
mov al, 1
jmp 0x14001bb2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001badf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140017e98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb2e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001e730
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001e758
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001e758
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001030
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x28], 0xf
mov byte [r11 - 0x40], r14b
mov r8d, ecx
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
jne 0x1400010a0
lea rdx, str.Failed_to_open_my_own_thread___
lea ecx, [rax + 3]
call fcn.140005ca0
jmp 0x1400011bc
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x1400010ef
mov edx, 0x100000
mov rdi, rdx
sub rdi, rcx
mov r8, qword [rsp + 0x50]
mov rax, r8
sub rax, rcx
cmp rdi, rax
ja 0x140001114
mov qword [rsp + 0x48], rdx
lea rbx, [rsp + 0x38]
cmp r8, 0x10
cmovae rbx, qword [rsp + 0x38]
add rbx, rcx
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.140007fc0
mov byte [rbx + rdi], 0
jmp 0x140001129
lea rdx, [rcx + rcx]
cmp rdx, rcx
ja 0x1400010af
mov qword [rsp + 0x48], rdx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
mov byte [rax + rdx], 0
jmp 0x140001129
mov byte [rsp + 0x20], 0
mov r9, rdi
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400016f0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400010a0
test eax, eax
jns 0x140001171
mov r8d, eax
lea rdx, str.NtQuerySystemInformation_SystemHandleInformation__failed_with_NTSTATUS_0x_08x
mov ecx, 3
call fcn.140005ca0
jmp 0x1400011bc
lea rsi, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rsi, qword [rsp + 0x38]
mov ebx, r14d
cmp dword [rsi], ebx
jbe 0x1400011bc
nop dword [rax]
mov eax, ebx
lea rcx, [rax + rax*2]
lea rdi, [rsi + rcx*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movzx eax, word [rdi + 8]
cmp ecx, eax
jne 0x1400011b0
cmp bp, word [rdi + 0xe]
je 0x1400011b8
inc ebx
cmp ebx, dword [rsi]
jae 0x1400011bc
jmp 0x140001190
mov r14, qword [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400011ff
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400011fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001224
call fcn.1400067d0
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006770
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000a34c
int3
Function at 0x1400024a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.1400038b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400024cb
mov dword [rsp + 0x20], 1
jmp 0x1400024d3
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140002640
Capabilities:
Delete file

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x30], 0xfffffffffffffffe
lea rcx, str.C:GodFaultTempEventAggregationPH.dll
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str.C:WindowsSystem32EventAggregation.dll.bak
lea rcx, [rsp + 0x38]
call fcn.140003950
nop
lea rcx, [rsp + 0x38]
call fcn.1400024a0
movzx eax, al
test eax, eax
jne 0x14000268a
mov dword [rsp + 0x24], 1
jmp 0x140002692
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x38]
call fcn.140003d90
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400026c4
lea rdx, str.No_cleanup_necessary.__Backup_does_not_exist.
xor ecx, ecx
call fcn.140005ca0
xor al, al
jmp 0x140002765
lea rcx, str.C:WindowsSystem32EventAggregation.dll
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, str.C:WindowsSystem32EventAggregation.dll
lea rcx, [rsp + 0x78]
call fcn.140003950
nop
lea rdx, str.C:WindowsSystem32EventAggregation.dll.bak
lea rcx, [rsp + 0x58]
call fcn.140003950
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.1400020f0
movzx eax, al
test eax, eax
jne 0x140002715
mov dword [rsp + 0x28], 1
jmp 0x14000271d
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x58]
call fcn.140003d90
nop
lea rcx, [rsp + 0x78]
call fcn.140003d90
nop
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140002763
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.InstallSymlink:_MoveFileExW_failed_with_GLE:__u
mov ecx, 3
call fcn.140005ca0
xor al, al
jmp 0x140002765
mov al, 1
add rsp, 0xa8
ret