joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005010
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x1403486e0]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + pe_nt_image_headers64]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14006b364
Capabilities:
Parse pe header

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

Function at 0x140078468
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14011f6c4
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x1400784b9
add rsi, 0xc
jmp 0x1400784bb
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.1400045b0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004600
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140078534
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14011f74c
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400a41e8
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x18], rdx
mov rsi, rcx
mov edi, r8d
mov ebx, r9d
mov r14, qword [rbp + 0x30]
mov rcx, rdx
mov edx, 1
xor r8d, r8d
call fcn.14011d8c0
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], r14
xor ecx, ecx
call fcn.14006a4a1
mov qword [rsp + 0x20], r14
mov r14d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rbp - 0x60], rcx
mov rdx, qword [rbp - 0x40]
mov qword [rbp - 0x68], rdx
mov r8d, edi
mov dword [rbp - 0x4c], r8d
mov r9d, ebx
mov dword [rbp - 0x50], r9d
lea rcx, [rbp - 0x90]
call fcn.1400045b0
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8d, dword [rbp - 0x4c]
mov r9d, dword [rbp - 0x50]
call sub.ADVAPI32.dll_RegSetValueExA
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004600
call fcn.140002f5f
mov rdi, rax
mov qword [rbp - 0x58], rdi
call fcn.14006a4ad
mov rcx, qword [rbp - 0x58]
mov dword [rcx + 8], eax
cmp qword [rbp + 0x18], 0
je 0x1400a42d2
mov rdx, qword [rbp - 0x40]
test rdx, 0xffffffffffff0000
je 0x1400a42d2
mov rcx, rdx
call fcn.140143504
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400a7298
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.1400045b0
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.140004600
test esi, esi
jne 0x1400a730c
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp esi, 0xc0000017
jne 0x1400a7333
lea rcx, [0x14025de18]
call fcn.140004140
mov rsi, rax
mov rcx, rsi
call fcn.1400cfa2c
mov rcx, rsi
call fcn.140004c20
lea rcx, [0x14025d600]
call fcn.140004140
mov rsi, rax
mov rcx, rsi
call fcn.1400c3614
mov rcx, rsi
call fcn.140004c20
int3

Function at 0x1400a7808
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rsi, rcx
mov eax, dword [rsi + 0x40]
cmp eax, 0xffffffff
je 0x1400a7825
add rsp, 0x48
pop rsi
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rsi
mov r9d, 4
call fcn.1401445d8
mov ecx, eax
test ecx, ecx
jne 0x1400a789d
xor eax, eax
test byte [rbp - 0x10], 0x30
jne 0x1400a7856
mov eax, 0x40000000
test byte [rbp - 0x10], 2
je 0x1400a7861
or eax, 0x80000000
test dword [rbp - 0x10], 0x800
je 0x1400a786f
or eax, 0x10000000
test byte [rbp - 0x10], 4
je 0x1400a787a
or eax, 0x8000000
test dword [rbp - 0x10], 0x1000
je 0x1400a7888
or eax, 0x4000000
test byte [rbp - 0x10], 8
je 0x1400a7893
or eax, 0x20000000
mov dword [rsi + 0x40], eax
add rsp, 0x48
pop rsi
pop rbp
ret
call fcn.14014457c
mov ecx, eax
lea rdx, [0x140317008]
call fcn.140115a4c
mov rcx, rax
call fcn.140004c20
int3

Function at 0x1400da234
Capabilities:
Hash data using sha1

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [rsi], 0
jne 0x1400da25e
lea rcx, [0x1402a6870]
mov edx, 0x55
call fcn.140004260
mov rdx, rax
mov rcx, rsi
call fcn.140004480
xor eax, eax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
mov rax, qword [rsi]
cmp dword [rax + 8], 0x50
jbe 0x1400da2cc
mov dword [rax + 0x150], 0x67452301
mov rax, qword [rsi]
cmp dword [rax + 8], 0x51
jbe 0x1400da2cc
mov dword [rax + 0x154], 0xefcdab89
mov rax, qword [rsi]
cmp dword [rax + 8], 0x52
jbe 0x1400da2cc
mov dword [rax + 0x158], 0x98badcfe
mov rax, qword [rsi]
cmp dword [rax + 8], 0x53
jbe 0x1400da2cc
mov dword [rax + 0x15c], 0x10325476
mov rax, qword [rsi]
cmp dword [rax + 8], 0x54
jbe 0x1400da2cc
mov dword [rax + 0x160], 0xc3d2e1f0
add rsp, 0x20
pop rsi
ret
call fcn.1401406bc
int3
Function at 0x140143dc0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp + 0x10], rcx
mov ebx, edx
mov rdi, r8
mov rsi, r9
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x38]
mov r12, qword [rbp + 0x40]
mov r13, qword [rbp + 0x48]
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14011f6c4
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rdi, rdi
jne 0x140143e28
xor r8d, r8d
jmp 0x140143e2c
lea r8, [rdi + 0x10]
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x50], rsi
mov r9, rsi
test r14, r14
jne 0x140143e40
xor eax, eax
jmp 0x140143e44
lea rax, [r14 + 0x10]
mov qword [rbp - 0x58], rax
test r15, r15
jne 0x140143e52
xor r10d, r10d
jmp 0x140143e56
lea r10, [r15 + 0x10]
mov qword [rbp - 0x60], r10
test r12, r12
jne 0x140143e64
xor r11d, r11d
jmp 0x140143e69
lea r11, [r12 + 0x10]
mov qword [rbp - 0x68], r11
test r13, r13
jne 0x140143e76
xor esi, esi
jmp 0x140143e7a
lea rsi, [r13 + 0x10]
mov qword [rbp - 0x70], rsi
mov rcx, rdx
mov qword [rbp - 0x7c], rcx
mov edx, ebx
mov dword [rbp - 0x74], edx
mov qword [rbp - 0x84], r8
mov qword [rbp - 0x8c], r9
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0xb8]
call fcn.1400045b0
mov rcx, qword [rbp - 0x7c]
mov edx, dword [rbp - 0x74]
mov r8, qword [rbp - 0x84]
mov r9, qword [rbp - 0x8c]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov esi, eax
lea rcx, [rbp - 0xb8]
call fcn.140004600
nop
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140143f16
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14011f74c
mov eax, esi
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14014443c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14011f6c4
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x14014448d
add rsi, 0xc
jmp 0x14014448f
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.1400045b0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004600
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140144508
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14011f74c
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401649d8
Capabilities:
Get token membership

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov rsi, r8
xor edx, edx
mov dword [rbp - 0x40], edx
mov dword [rbp - 0x48], edx
lea rdx, [rbp - 0x48]
cmp dword [rcx], ecx
call fcn.14011f6c4
mov rcx, qword [rbp + 0x10]
mov rbx, qword [rcx + 8]
mov qword [rbp + 0x20], rsi
cmp byte [rsi], 0
jne 0x140164a28
xor eax, eax
jmp 0x140164a2d
mov eax, 1
mov dword [rbp - 0x40], eax
test rdi, rdi
jne 0x140164a3a
xor r14d, r14d
jmp 0x140164a3e
lea r14, [rdi + 0x10]
mov qword [rbp - 0x50], r14
xor ecx, ecx
call fcn.14006a4a1
lea r8, [rbp - 0x40]
mov qword [rbp - 0x58], r8
mov rcx, rbx
mov qword [rbp - 0x60], rcx
mov rdx, r14
mov qword [rbp - 0x68], rdx
lea rcx, [rbp - 0x90]
call fcn.1400045b0
mov r8, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
call sub.ADVAPI32.dll_CheckTokenMembership
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004600
call fcn.14006a4ad
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
test esi, esi
setne sil
movzx esi, sil
cmp dword [rbp - 0x40], 0
setne cl
mov rbx, qword [rbp + 0x20]
mov byte [rbx], cl
cmp byte [rbp - 0x48], 0
je 0x140164abf
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14011f74c
call fcn.140002f5f
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x142619058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1426191df
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 0x142619089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14261906f
add dl, dl
jne 0x142619096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1426190f6
xor eax, eax
add dl, dl
jne 0x1426190a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1426191ad
add dl, dl
jne 0x1426190b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426190c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426190d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426190dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1426190ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14261907e
mov eax, 1
add dl, dl
jne 0x142619106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142619113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1426190fb
sub eax, ebx
mov ebx, 1
jne 0x14261914c
mov ecx, 1
add dl, dl
jne 0x14261912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14261913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142619123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14261907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142619168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142619175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14261915d
cmp eax, 0x7d00
jae 0x14261919b
cmp eax, 0x500
jb 0x142619196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14261907e
cmp eax, 0x7f
ja 0x14261919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14261907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1426191d2
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 0x14261907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000bbb0]
mov dword [rax], 1
mov rax, qword [0x14000bbc0]
mov dword [rax], 1
mov rax, qword [0x14000bbd0]
mov dword [rax], 1
mov rax, qword [0x14000bb60]
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 0x140001680
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
test r8, r8
je 0x1400016c4
lea rdx, [r8 - 1]
cmp rdx, 6
jbe 0x1400017e8
lea rax, [rcx + 1]
mov r10, r9
sub r10, rax
xor eax, eax
cmp r10, 0xe
ja 0x1400016c8
nop dword [rax + rax]
movzx edx, byte [rcx + rax]
xor edx, 0x55
mov byte [r9 + rax], dl
add rax, 1
cmp r8, rax
jne 0x1400016b0
ret
cmp rdx, 0xe
jbe 0x1400017ef
mov rdx, r8
movdqu xmm1, xmmword [str.UUUUUUUUUUUUUUUUlggcdg9.226.12]
and rdx, 0xfffffffffffffff0
nop dword [rax]
movdqu xmm0, xmmword [rcx + rax]
pxor xmm0, xmm1
movups xmmword [r9 + rax], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x1400016e8
cmp r8, rdx
je 0x1400016c4
mov rax, r8
sub rax, rdx
lea r10, [rax - 1]
cmp r10, 6
jbe 0x140001739
movq xmm0, qword [rcx + rdx]
mov r10, rax
movq xmm1, qword [str.UUUUUUUUUUUUUUUUlggcdg9.226.12]
and r10, 0xfffffffffffffff8
pxor xmm0, xmm1
movq qword [r9 + rdx], xmm0
add rdx, r10
test al, 7
je 0x1400016c4
movzx eax, byte [rcx + rdx]
xor eax, 0x55
mov byte [r9 + rdx], al
lea rax, [rdx + 1]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 1]
xor eax, 0x55
mov byte [r9 + rdx + 1], al
lea rax, [rdx + 2]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 2]
xor eax, 0x55
mov byte [r9 + rdx + 2], al
lea rax, [rdx + 3]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 3]
xor eax, 0x55
mov byte [r9 + rdx + 3], al
lea rax, [rdx + 4]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 4]
xor eax, 0x55
mov byte [r9 + rdx + 4], al
lea rax, [rdx + 5]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 5]
xor eax, 0x55
mov byte [r9 + rdx + 5], al
lea rax, [rdx + 6]
cmp rax, r8
jae 0x1400016c4
movzx eax, byte [rcx + rdx + 6]
xor eax, 0x55
mov byte [r9 + rdx + 6], al
ret
xor eax, eax
jmp 0x1400016b0
mov rax, r8
xor edx, edx
jmp 0x140001714

Function at 0x140001cb0
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 0x140002982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002a1a
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f110]
mov qword [rbp - 8], rax
jmp 0x1400029fe
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 0x1400029f2
cmp qword [rbp - 0x10], 0
je 0x1400029f2
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 0x1400029b8
lea rax, [0x14000f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b20
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 0x140002b48
mov eax, 0
jmp 0x140002b96
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 0x140002b71
mov eax, 0
jmp 0x140002b96
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 0x140002b91
mov eax, 0
jmp 0x140002b96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002b9c
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 0x140002c1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c11
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 0x140002c11
mov rax, qword [rbp - 8]
jmp 0x140002c2f
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 0x140002be4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009370
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x3b8
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x320], xmm6
lea rsi, [0x14000b0b8]
call sym.__main
lea rdi, [rbp - 0x60]
mov ecx, 0x6f
sub rsp, 0x380
rep movsq qword [rdi], qword [rsi]
mov r8d, 0x37e
lea rcx, str.Original
lea rbx, [rsp + 0x20]
mov eax, dword [rsi]
mov dword [rdi], eax
movzx eax, word [0x14000b434]
mov word [rdi + 4], ax
movzx eax, byte [0x14000b436]
mov byte [rdi + 6], al
lea rdi, [rbp - 0x60]
mov rdx, rdi
call sym.printf_type
movdqu xmm6, xmmword [str.UUUUUUUUUUUUUUUUlggcdg9.226.12]
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax]
pxor xmm0, xmm6
movups xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rax, 0x370
jne 0x1400093f0
mov rax, qword [0x14000b450]
mov edx, 0xffffe43d
mov dword [rbx + 0x378], 0x8b6f5564
mov r8d, 0x37e
mov word [rbx + 0x37c], dx
lea rcx, str.encrypt
mov rdx, rbx
mov qword [rbx + 0x370], rax
call sym.printf_type
sub rsp, 0x380
xor eax, eax
lea rdx, [rsp + 0x20]
movdqu xmm0, xmmword [rbx + rax]
pxor xmm0, xmm6
movups xmmword [rdx + rax], xmm0
add rax, 0x10
cmp rax, 0x370
jne 0x140009450
mov rax, qword [0x14000b458]
mov r8d, 0x37e
mov dword [rdx + 0x378], 0xde3a0031
lea rcx, str.decrypt
mov qword [rdx + 0x370], rax
mov eax, 0xffffb168
mov word [rdx + 0x37c], ax
call sym.printf_type
nop
movups xmm6, xmmword [rbp + 0x320]
xor eax, eax
lea rsp, [rbp + 0x338]
pop rbx
pop rsi
pop rdi
pop rbp
ret