joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007c50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140007c5b
xor eax, eax
ret
lea r11, [0x140010490]
not ecx
cmp r8d, 8
jb 0x140007d31
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140007c80
test r8d, r8d
je 0x140007d5d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140007d40
not ecx
mov eax, ecx
ret

Function at 0x140008760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x1400087ba
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400087a6
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008800
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x140008850
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000884a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x140008887
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x140008866
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x1400088a8
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x14000889e
cmp byte [rbx + 0x10], 0
je 0x14000889e
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x140009580
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140009787
cmp dword [rcx + 0x1c], 0
je 0x140009787
cmp qword [rcx + 0x80], 0
je 0x1400095af
call fcn.140009b20
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1400092d0
test eax, eax
je 0x1400095d6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400095fd
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x140009645
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x140009694
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140007ff0
test eax, eax
jne 0x140009694
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x1400096c0
movzx eax, byte [rdi + 0x3d]
jmp 0x1400096c4
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14000975b
lea r8, [0x140010490]
movzx eax, byte [rsi]
test al, al
je 0x14000975b
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x140009701
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000a320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000a34e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a34e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rdi]
test al, al
je 0x14000a42c
mov qword [rsp + 0x250], rsi
mov rcx, rdi
mov rsi, rdi
cmp al, 0x2f
je 0x14000a36f
cmp al, 0x5c
jne 0x14000a372
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14000a367
cmp rsi, rdi
je 0x14000a3b0
sub rsi, rdi
lea rcx, [rsp + 0x130]
mov r8, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x130]
mov byte [rsp + rsi + 0x130], 0
mov rcx, rbx
call fcn.14000a320
mov rsi, qword [rsp + 0x250]
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x14000a3de
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14000a3d0
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000a3e6
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000a400
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a42c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14000a950
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov r14, rcx
mov ecx, 0x258
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov rsi, rax
mov qword [rsp + 0x40], rax
mov rdi, 0xffffffffffffffff
xor ebp, ebp
test rax, rax
je 0x14000a9e0
mov qword [rax], rbp
mov dword [rax + 8], edi
mov dword [rax + 0x138], edi
mov qword [rax + 0x140], rbp
mov qword [rax + 0x148], rbp
test rbx, rbx
je 0x14000a9e3
mov rcx, rdi
inc rcx
cmp byte [rbx + rcx], bpl
jne 0x14000a9b1
inc rcx
call qword [sym.imp.mfc140.dll_Ordinal_265]
mov qword [rsi + 0x140], rax
sub rax, rbx
nop dword [rax]
movzx ecx, byte [rbx]
mov byte [rax + rbx], cl
lea rbx, [rbx + 1]
test cl, cl
jne 0x14000a9d0
jmp 0x14000a9e3
mov rsi, rbp
cmp qword [rsi], 0
jne 0x14000ab0a
cmp dword [rsi + 8], 0xffffffff
jne 0x14000ab0a
lea rbx, [rsi + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
nop dword [rax]
lea rdi, [rdi + 1]
cmp byte [rbx + rdi], 0
jne 0x14000aa10
movzx eax, byte [rdi + rsi + 0x14f]
cmp al, 0x5c
je 0x14000aa43
cmp al, 0x2f
je 0x14000aa43
dec rbx
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x14000aa30
movzx eax, word [0x140012450]
mov word [rbx], ax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000ab03
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, 0x30
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], r15
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], ebp
cmp edi, 0xffffffff
je 0x14000aad6
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.140008b40
mov qword [rsi], rax
test rax, rax
je 0x14000ab03
mov dword [0x140a56610], ebp
mov ecx, 0x10
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x14000ab56
mov eax, 0x200
jmp 0x14000ab0f
mov eax, 0x1000000
mov dword [0x140a56610], eax
mov rcx, qword [rsi + 0x140]
test rcx, rcx
je 0x14000ab27
call qword [sym.imp.mfc140.dll_Ordinal_266]
mov qword [rsi + 0x140], rbp
mov rcx, qword [rsi + 0x148]
test rcx, rcx
je 0x14000ab40
call qword [sym.imp.mfc140.dll_Ordinal_266]
mov qword [rsi + 0x148], rbp
mov edx, 0x258
mov rcx, rsi
call fcn.14000d1a4
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14000b470
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x14000b574
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
mov rax, rcx
test rcx, rcx
je 0x14000b4b8
cmp dword [rbx + 0x58], edi
jae 0x14000b4b8
call qword [sym.imp.mfc140.dll_Ordinal_266]
mov qword [rbx + 0x50], 0
jmp 0x14000b4bd
test rax, rax
jne 0x14000b4cd
lea ecx, [rdi + rdi]
call qword [sym.imp.mfc140.dll_Ordinal_265]
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call sub.VCRUNTIME140.dll_memcpy
test edi, edi
je 0x14000b56b
xor r11d, r11d
lea rsi, [0x140011c30]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
movzx ecx, r8b
shr r8d, 8
xor edx, dword [rsi + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul eax, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc eax
mov dword [rbx + 0x48], eax
shr rax, 0x18
xor rcx, rax
xor r8d, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x14000b4f0
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14000b5c4
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x14000b5a1
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000b5fb
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x6c0570
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x6c057d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6c058d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6c0575
lea eax, [rcx + 1]
jmp 0x6c059b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6c05ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6c0594
sub eax, 3
jb 0x6c05ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6c061d
sar eax, 1
movsxd rbp, eax
jb 0x6c0604
jmp 0x6c05dc
add ebx, ebx
jne 0x6c05da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6c0604
inc ecx
add ebx, ebx
jne 0x6c05ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6c0604
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6c05fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6c05ec
add ecx, 2
jmp 0x6c0609
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006c0532
jmp 0x6c057d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x153400
mov dl, 0x33
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6c0669
cmp rsi, rcx
jae 0x6c0671
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6c0650
cmp al, 0x8f
ja 0x6c0650
cmp byte [rsi - 2], 0xf
je 0x6c0656
sub al, 0xe8
cmp al, 1
ja 0x6c063a
cmp rsi, rcx
jae 0x6c0671
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6c0640
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6c0671
lodsb al, byte [rsi]
jmp 0x6c0650
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2bb000]
mov eax, dword [rdi]
or eax, eax
je 0x6c06ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2c0000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x6c067e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x6c06c8
mov qword [rbx], rax
add rbx, 8
jmp 0x6c069e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x6c0712
cmp al, 0xef
ja 0x6c06fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6c06da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x6c06e9
mov eax, dword [rdi]
add rdi, 4
jmp 0x6c06e9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x6c0766
sub rsp, 0xffffffffffffff80
jmp 0x453dc0
Function at 0x140002c04
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea r8, [0x140018300]
lea rcx, [rsp + 0x20]
lea rdx, str.log.log
call fcn.140004b60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r9, qword [rsp + 0x20]
mov edx, 1
movsxd r8, eax
mov rcx, rbx
call fcn.140004a0c
mov r9, qword [rsp + 0x20]
lea rcx, [0x140018304]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.140004a0c
mov rcx, qword [rsp + 0x20]
call fcn.140004760
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002890
add rsp, 0x30
pop rbx
ret

Function at 0x140001270
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400012df
lea rdx, [0x140018318]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov qword [0x14001cc20], rax
call rax
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1400035f0
lea rcx, [rsp + 0x20]
mov byte [rax + 1], 0
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002890
add rsp, 0x148
ret

Function at 0x1400015a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtOpenProcessToken
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001cff8], rax
test rax, rax
jne 0x1400015da
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.ZwQueryInformationToken
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001cfb0], rax
test rax, rax
je 0x1400015d2
lea rdx, str.NtCreateSection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001cff0], rax
test rax, rax
je 0x1400015d2
lea rdx, str.ZwSecureConnectPort
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001cfb8], rax
test rax, rax
je 0x1400015d2
lea rdx, str.NtRequestWaitReplyPort
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov qword [0x14001cc58], rax
test rax, rax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140001db0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbp
sub rsp, 0x20
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov eax, 0x5a4d
cmp word [rbp], ax
je 0x140001dd9
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov qword [rsp + 0x40], rsi
movsxd rsi, dword [rbp + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
je 0x140001dfa
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
movzx eax, word [rsi + 0x14]
mov qword [rsp + 0x38], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rdi
lea rdi, [rsi + 0x18]
add rdi, rax
cmp bx, word [rsi + 6]
jae 0x140001e42
nop word [rax + rax]
lea rdx, [0x140018528]
mov rcx, rdi
call fcn.140003734
test rax, rax
jne 0x140001e5f
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jl 0x140001e20
mov rax, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
add rax, rbp
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rdi + 0xc]
add eax, 0x11e8
jmp 0x140001e47
Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov rbp, rcx
call fcn.140001db0
lea r8, [0x140018300]
mov qword [0x14001cc50], rax
lea rdx, str.log.log
lea rcx, [rsp + 0x20]
call fcn.140004b60
lea rcx, str.GetSecretKeyFromFile
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r9, qword [rsp + 0x20]
lea rcx, str.GetSecretKeyFromFile
movsxd r8, eax
mov edx, 1
call fcn.140004a0c
mov r9, qword [rsp + 0x20]
lea rcx, [0x140018304]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.140004a0c
mov rcx, qword [rsp + 0x20]
call fcn.140004760
call fcn.140001400
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140003de0
lea rdx, str.wins
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.pool.drv
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.Docu
mov rbx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str.mentEvent
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x14001cc50]
xor r8d, r8d
mov rcx, rsi
mov rbx, rax
call fcn.140001a10
lea r8, [0x14001d000]
mov rcx, rbp
lea rdx, [0x14001cd70]
mov rdi, rax
call qword [0x14001cc58]
test eax, eax
jne 0x14000209e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [0x14001cc50]
mov r8d, 1
mov rcx, rsi
call fcn.140001a10
lea r8, [0x14001d000]
mov rcx, rbp
lea rdx, [0x14001cd70]
call qword [0x14001cc58]
test eax, eax
jne 0x140002110
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r10, qword [rdi + 0x250]
xor r9d, r9d
mov edi, r9d
nop word [rax + rax]
mov ecx, r9d
movsxd rax, r9d
and ecx, 0x3f
mov rdx, r10
rol rdx, cl
xor rdx, rbx
mov rcx, rdx
and ecx, 0x3f
cmp rcx, rax
jne 0x140002058
mov ecx, edx
mov r8, rdx
and ecx, 0x3f
xor r8, rbx
ror r8, cl
cmp r8, r10
jne 0x140002058
mov rdi, rdx
cmp rdx, rbx
jb 0x140002061
inc r9d
cmp r9d, 0x3f
jle 0x140002020
lea rcx, str.SecretKey
call fcn.1400011e0
call fcn.140001400
mov rax, rdi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002890
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r8, [0x140018300]
lea rdx, str.log.log
lea rcx, [rsp + 0x20]
call fcn.140004b60
lea rcx, str.Writing_message_0x6D__first_time__failed
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r9, qword [rsp + 0x20]
lea rcx, str.Writing_message_0x6D__first_time__failed
movsxd r8, eax
mov edx, 1
call fcn.140004a0c
mov r9, qword [rsp + 0x20]
lea rcx, [0x140018304]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.140004a0c
mov rcx, qword [rsp + 0x20]
call fcn.140004760
call fcn.140001400
mov ecx, 1
call fcn.140004e60
int3
mov ecx, 1
call fcn.140004e60
int3