joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov ebx, r9d
xor ebp, ebp
mov r15d, r8d
mov r14, rdx
mov rcx, 0xffffffffffffffff
mov eax, 4
mov esi, ebp
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400188e4
mov r11, rax
mov r8d, ebp
test ebx, ebx
je 0x140008924
cmp ebx, 0x10
jb 0x1400088ff
movdqa xmm2, xmmword [0x1400402b0]
lea edx, [rbp + 8]
mov r9d, ebx
lea rcx, [rax + 0x20]
and r9d, 0xfffffff0
nop dword [rax]
lea eax, [rdx - 4]
movd xmm0, r8d
pshufd xmm0, xmm0, 0
lea rcx, [rcx + 0x40]
paddd xmm0, xmm2
movd xmm1, eax
movdqu xmmword [rcx - 0x60], xmm0
lea eax, [rdx + 4]
add r8d, 0x10
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
movd xmm0, edx
movdqu xmmword [rcx - 0x50], xmm1
add edx, 0x10
movd xmm1, eax
pshufd xmm0, xmm0, 0
pshufd xmm1, xmm1, 0
paddd xmm0, xmm2
paddd xmm1, xmm2
movdqu xmmword [rcx - 0x40], xmm0
movdqu xmmword [rcx - 0x30], xmm1
cmp r8d, r9d
jb 0x1400088a0
cmp r8d, ebx
jae 0x140008924
movsxd rax, r8d
lea rcx, [r11 + rax*4]
nop dword [rax + rax]
mov dword [rcx], r8d
lea rcx, [rcx + 4]
inc r8d
cmp r8d, ebx
jb 0x140008910
mov r9d, ebp
jmp 0x14000892b
mov r9d, ebp
test ebx, ebx
je 0x14000896c
mov r10, r11
nop
mov r8d, dword [r10]
lea r10, [r10 + 4]
xor edx, edx
mov eax, r9d
div ebx
inc r9d
movsxd rax, edx
xor edx, edx
movzx eax, byte [rax + r14]
add eax, r8d
add eax, esi
div ebx
movsxd rsi, edx
mov eax, dword [r11 + rsi*4]
lea rcx, [r11 + rsi*4]
mov dword [r10 - 4], eax
movzx eax, r8b
mov dword [rcx], eax
cmp r9d, ebx
jb 0x140008930
test r15d, r15d
je 0x1400089ea
mov r14, rdi
mov r10, r15
nop word [rax + rax]
xor edx, edx
lea eax, [rbp + 1]
div ebx
lea r14, [r14 + 1]
movsxd rbp, edx
xor edx, edx
mov ecx, dword [r11 + rbp*4]
lea r9, [r11 + rbp*4]
lea eax, [rcx + rsi]
movzx ecx, cl
div ebx
movsxd rsi, edx
xor edx, edx
mov eax, dword [r11 + rsi*4]
lea r8, [r11 + rsi*4]
mov dword [r9], eax
mov dword [r8], ecx
mov eax, dword [r9]
add eax, ecx
div ebx
movsxd rax, edx
movzx ecx, byte [r11 + rax*4]
xor byte [r14 - 1], cl
sub r15, 1
jne 0x140008980
nop dword [rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
ror al, 3
not al
ror al, 6
not al
mov byte [rdi - 1], al
sub r10, 1
jne 0x1400089d0
mov rcx, r11
call fcn.140010060
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140009d00
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xe], 0
mov r10, rcx
je 0x140009d49
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 0xd
jb 0x140009d10
mov byte [r10 + 0xe], 0
ret

Function at 0x140009d50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1f], 0
mov r10, rcx
je 0x140009d99
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 0x1e
jb 0x140009d60
mov byte [r10 + 0x1f], 0
ret

Function at 0x140009da0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
mov r10, rcx
je 0x140009de9
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 6
jb 0x140009db0
mov byte [r10 + 7], 0
ret

Function at 0x140009df0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
mov r10, rcx
je 0x140009e39
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 3
jb 0x140009e00
mov byte [r10 + 4], 0
ret

Function at 0x140009e40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
mov r10, rcx
je 0x140009e89
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 4
jb 0x140009e50
mov byte [r10 + 5], 0
ret

Function at 0x140009e90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x100], 0
mov r10, rcx
je 0x140009ede
xor eax, eax
nop
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 0xff
jb 0x140009ea0
mov byte [r10 + 0x100], 0
ret

Function at 0x140009ee0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x2c], 0
mov r10, rcx
je 0x140009f29
xor eax, eax
nop dword [rax + rax]
mov r9d, eax
lea r8d, [rax - 0x22]
xor r8b, byte [rax + r10]
and r9d, 7
movzx edx, r8b
mov ecx, 8
sub ecx, r9d
shl dl, cl
movzx ecx, r9b
shr r8b, cl
or dl, r8b
mov byte [rax + r10], dl
inc rax
cmp rax, 0x2b
jb 0x140009ef0
mov byte [r10 + 0x2c], 0
ret
Function at 0x14000b960
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000ba72
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000ba72
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000b9d9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000ba7d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000ba60
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000ba60
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000ba39
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000ba55
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000c140
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000b9f1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000ba7d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140010040
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000d1a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000d22e
test rbx, rbx
je 0x14000d1f6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000d1e0
test eax, eax
jns 0x14000d24f
test rbx, rbx
je 0x14000d254
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000d351
test rbx, rbx
jne 0x14000d25b
xor eax, eax
jmp 0x14000d351
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000d331
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000d2b0
lea rcx, [rsp + 0x28]
call fcn.1400078d0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000d2d0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.140017938
test eax, eax
je 0x14000d367
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000d327
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d322
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d3ba
call fcn.140010060
inc edi
cmp edi, dword [rbx]
jb 0x14000d274
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140010040
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000d3b5
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d3b0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d3ba
call fcn.140010060
mov rax, rdi
jmp 0x14000d344
call fcn.1400186b0
int3
Function at 0x140010df4
Capabilities:
Parse pe header

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

Function at 0x140016c6c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140019724
or eax, 0xffffffff
jmp 0x140016c8e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001a7d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a5d0

Function at 0x14001dc18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001dc2e
mov al, 1
jmp 0x14001dc8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001dc3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001dc8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002610c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001dc8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001dc8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001dc8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001dc8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020c98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010a70
sub rsp, rax
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d9fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140020ce7
mov rax, rbp
jmp 0x140020def
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x784c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021cbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x784c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140020deb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020deb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021cbc
test rax, rax
js 0x140020deb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140020deb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140020ddd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140020ddd
cmp byte [rcx], 0xd
jne 0x140020dc3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140020dd2
cmp byte [rcx + 1], 0xa
jne 0x140020dd2
inc rcx
jmp 0x140020dd2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x47470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020da5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140020def
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010040
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002105c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400784c0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400210b3
cmp word [rdx], r13w
jne 0x1400210b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400210b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400211dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400211fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400210f1
mov rdx, r9
mov word [rbx], cx
jmp 0x140021118
cmp r9, r8
jae 0x140021128
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400210d2
jmp 0x1400211dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400211d2
cmp dword [rsp + 0x80], esi
je 0x1400211d2
lea r8, [0x1400784c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400211aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002117a
mov word [rbx], r13w
jmp 0x1400211da
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140021187
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400211da
cmp word [rsp + 0x70], r13w
jne 0x1400211b7
cmp rbx, r14
je 0x140021174
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021cc4
cmp word [rsp + 0x70], r13w
je 0x1400211dd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400784c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400211d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400211dd
Function at 0x1400254f0
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 0x140025577
mov rsi, rbx
cmp word [rax], bp
je 0x140025536
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140025520
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002551c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140021e5c
mov rdi, rax
test rax, rax
je 0x140025564
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140012010
mov rbp, rdi
xor ecx, ecx
call fcn.14001f560
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 0x140028660
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001e1a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140028701
cmp ebx, dword [rsp + 0x30]
je 0x1400286fa
test esi, esi
je 0x1400286fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400286d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400286e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400286bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400286e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140028703
mov eax, 1
jmp 0x140028703
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002a978
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.140021cc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021cc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002aac8
cmp rax, 0xffffffffffffffff
je 0x14002aac8
xor edi, edi
test rbp, rbp
jle 0x14002aa73
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fcf8
mov rbx, rax
test rax, rax
jne 0x14002aa00
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002aa69
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b620
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.14001f258
cmp eax, 0xffffffff
je 0x14002aa49
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002aa10
mov edx, r15d
mov ecx, r14d
call fcn.14001b620
jmp 0x14002aa69
cmp byte [rsi + 0x38], dil
je 0x14002aa60
cmp dword [rsi + 0x34], 5
jne 0x14002aa60
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002aa69
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001f560
jmp 0x14002aadc
jns 0x14002aadc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021cc4
cmp rax, 0xffffffffffffffff
jne 0x14002aa94
cmp byte [rsi + 0x30], dil
je 0x14002aadc
mov edi, dword [rsi + 0x2c]
jmp 0x14002aadc
mov ecx, r14d
call fcn.14002610c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002aadc
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 0x14002aadc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002aad5
mov eax, dword [rsi + 0x2c]
jmp 0x14002aada
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021cc4
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 0x140001000
Capabilities:
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov edx, 0x1000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ebx, ebx
lea rbp, str.e48348fc_e8f0_00c0_0000_415141505251
mov rsi, rax
mov rdi, rax
nop dword [rax]
mov rcx, qword [rbx + rbp]
mov rdx, rdi
call qword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
jne 0x1400010d6
add rbx, 8
add rdi, 0x10
cmp rbx, 0x90
jb 0x140001050
lea r9, [rsp + 0x20]
mov edx, 0x1000
lea r8d, [rax + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001100
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400019dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a28
xor al, al
add rsp, 0x28
ret
Function at 0x10000e0e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10006d7a0], ecx
xor eax, eax
add eax, 1
lea rdx, [0x10006d7a0]
movsxd rcx, eax
mov r8d, dword [rdx + rcx*4 - 4]
mov ecx, r8d
shr ecx, 0x1e
xor ecx, r8d
imul ecx, ecx, 0x6c078965
mov r8d, eax
add r8d, ecx
mov ecx, eax
mov dword [rdx + rcx*4], r8d
cmp eax, 0x26f
jl 0x10000e0e8
mov dword [0x100049be0], 0x270
ret

Function at 0x10000e130
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0xffffffff
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x10006d7a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x10006d7a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x10006d7a0]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x10006d7a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x10000e138
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x10006d7a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x10006d7a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x10006d7a0]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x10006d7a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x10000e1a8
mov edx, dword [0x10006d7a0]
mov ecx, dword [0x10006e15c]
mov eax, edx
and eax, 1
neg rax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x10006ddd0]
mov dword [0x10006e15c], eax
mov dword [0x100049be0], 0
ret

Function at 0x10000e260
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x100049be0]
add dword [0x100049be0], 1
mov eax, dword [0x10006c120]
cmp eax, dword [0x100049630]
jne 0x10000e289
cmp ebx, 0x271
jb 0x10000e2ac
mov ecx, dword [0x10006c120]
call fcn.10000e0e0
not dword [0x10006c120]
mov eax, dword [0x10006c120]
mov dword [0x100049630], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x10000e2c8
call fcn.10000e130
xor ebx, ebx
mov dword [0x100049be0], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x10006d7a0]
mov edx, dword [rax + rbx*4]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
nop
lea rsp, [rsp + 0x20]
pop rbx
ret