joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402394c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x240
mov rsi, rdx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
mov r14d, 0x104
test rcx, rcx
je 0x14023954f
mov rdx, rcx
mov r8d, r14d
lea rcx, [rsp + 0x20]
call fcn.14025996c
lea rcx, [rsp + 0x20]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140239510
test rax, rax
je 0x140239532
movzx ecx, byte [rsp + rax + 0x1f]
cmp cl, 0x2f
je 0x14023952d
cmp cl, 0x5c
jne 0x140239532
mov byte [rsp + rax + 0x1f], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14023954f
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x14023962d
mov qword [rsp + 0x250], rdi
mov rcx, rsi
mov rdi, rsi
cmp al, 0x2f
je 0x140239570
cmp al, 0x5c
jne 0x140239573
mov rdi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140239568
cmp rdi, rsi
je 0x1402395a8
sub rdi, rsi
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, rsi
call fcn.1402496a0
lea rdx, [rsp + 0x20]
mov byte [rsp + rdi + 0x20], 0
mov rcx, rbp
call fcn.1402394c0
mov rdi, qword [rsp + 0x250]
mov byte [rsp + 0x130], 0
test rbp, rbp
je 0x1402395d0
mov r8, r14
lea rcx, [rsp + 0x130]
mov rdx, rbp
call fcn.14025996c
mov byte [rsp + 0x233], 0
lea rax, [rsp + 0x130]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1402395e0
sub r14, rbx
lea rcx, [rsp + 0x130]
add rcx, rbx
mov r8, r14
mov rdx, rsi
call fcn.14025996c
lea rcx, [rsp + 0x130]
mov byte [rsp + 0x233], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14023962d
xor edx, edx
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140239dd0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push r13
push r14
sub rsp, 0x50
cmp qword [rcx], 0
mov ebp, r9d
mov r13, rdx
mov r14, rcx
jne 0x140239fb7
cmp dword [rcx + 8], 0xffffffff
jne 0x140239fb7
lea rdx, [rcx + 0x150]
mov qword [rsp + 0x70], rbx
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [r14 + rax + 0x151], 0
lea rax, [rax + 1]
jne 0x140239e20
movzx ecx, byte [rax + r14 + 0x14f]
cmp cl, 0x5c
je 0x140239e4d
cmp cl, 0x2f
je 0x140239e4d
mov word [rax + r14 + 0x150], PathResolve
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
cmp ebp, 1
jne 0x140239eaa
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140239ebb
mov eax, 0x2000000
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x140239ebb
mov ecx, 0x10000
mov eax, ecx
jmp 0x140239e84
xor edi, edi
xor r12b, r12b
xor r15b, r15b
mov esi, edi
cmp ebp, 1
je 0x140239f13
cmp ebp, 2
jne 0x140239f34
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140239f0e
mov ecx, 0x200
mov eax, ecx
jmp 0x140239e84
mov r15b, 1
jmp 0x140239f19
mov rsi, r13
xor r15b, r15b
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne r12b
mov ecx, PathResolve
call fcn.14018ef40
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x140239f68
mov word [rax], 0x100
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x14], edi
jmp 0x140239f9a
mov byte [rax], 1
mov byte [rax + 0x18], r15b
mov byte [rax + 1], r12b
mov qword [rax + 8], rsi
mov byte [rax + 0x10], dil
mov dword [rax + 0x14], edi
test r12b, r12b
je 0x140239f9a
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.14023d080
test rax, rax
mov qword [r14], rax
mov ecx, 0x200
cmove edi, ecx
mov eax, edi
jmp 0x140239e84
mov eax, 0x1000000
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
Function at 0x14023caf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x14023cb4a
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14023cb36
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.1402496a0
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14023cb90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14023cba6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1402d6030]
not ecx
cmp r10d, 8
jb 0x14023cc98
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14023cbd0
test r10d, r10d
je 0x14023ccc0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14023cca0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14023ce60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14023d071
cmp dword [rcx + 0x1c], 0
je 0x14023d071
cmp qword [rcx + 0x80], 0
je 0x14023ce8f
call fcn.14023ccd0
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14023d740
test eax, eax
je 0x14023ceb6
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140250fe4
mov rbx, rax
test rax, rax
jne 0x14023cedc
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.140250fe4
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x14023cf22
mov rcx, rbx
call fcn.14024c3e8
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x14023cf74
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14023b0b0
test eax, eax
jne 0x14023cf74
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x14023cf9f
movzx eax, byte [rdi + 0x3d]
jmp 0x14023cfa3
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x14023d045
lea r8, [0x1402d6030]
movzx eax, byte [rsi]
test al, al
je 0x14023d045
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
mov eax, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
xor eax, edx
mov dword [rbx + 0x9c], eax
movzx eax, al
add eax, dword [rbx + 0xa0]
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
mov eax, dword [r8 + rax*4]
xor eax, ecx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x14023cfe7
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14023e140
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov edi, 1
je 0x14023e190
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14023e18a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x14023e1c7
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x14023e1a6
mov edi, ecx
sub edi, esi
mov rdx, rsi
mov r8d, edi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, edi
call fcn.1402496a0
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x14023e1e8
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x14023e1de
cmp byte [rbx + 0x10], 0
je 0x14023e1de
mov eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret
Function at 0x140240550
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x140240566
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1402d69d0]
not ecx
cmp r10, 8
jb 0x140240654
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140240590
test r10, r10
je 0x140240680
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x140240660
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1402437c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
je 0x140243839
mov eax, dword [rdi + 0xb4]
mov esi, dword [rdi + 0xb0]
cmp eax, esi
jae 0x140243889
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.1402496a0
mov ecx, dword [rdi + 0x90]
mov rdx, rbp
add dword [rdi + 0xb4], esi
add dword [rdi + 0x8c], esi
mov r8d, esi
call fcn.140240550
mov dword [rdi + 0x90], eax
mov eax, esi
jmp 0x14024388b
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x140243882
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140243889
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x8c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x90]
call fcn.140240550
mov dword [rdi + 0x90], eax
mov eax, ebx
jmp 0x14024388b
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140243fe0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1402440e7
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
mov rax, rcx
test rcx, rcx
je 0x140244027
cmp dword [rbx + 0x58], edi
jae 0x140244027
call fcn.140247060
xor eax, eax
mov qword [rbx + 0x50], 0
test rax, rax
jne 0x14024403b
lea ecx, [rdi + rdi]
call fcn.140247068
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.1402496a0
test edi, edi
je 0x1402440de
xor r11d, r11d
lea rsi, [0x1402d69d0]
nop
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul eax, eax, 0x8088405
movzx ecx, r8b
shr r8d, 8
inc eax
mov dword [rbx + 0x48], eax
shr rax, 0x18
xor rcx, rax
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x140244060
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x140244137
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x140244114
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.1402496a0
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14024416e
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1402575b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14025731c
Function at 0x140264bc0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140264a26
call fcn.140250864
mov dword [rax], reloc.WSOCK32.dll_shutdown
call fcn.1402500c8
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140264a08
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140264a08
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140264a58
lock or dword [rax + 0x14], 0x10
jmp 0x140264a08
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140264a75
mov rcx, qword [rbp + 0x20]
call fcn.140265d20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140264a8a
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x140264a90
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140257a9c
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1402650f8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140264ae3
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140264a08
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140264b4f
mov rcx, qword [rbp + 0x20]
call fcn.140257a9c
cmp eax, 0xffffffff
je 0x140264b36
mov rcx, qword [rbp + 0x20]
call fcn.140257a9c
cmp eax, 0xfffffffe
je 0x140264b36
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140257a9c
movsxd rdi, eax
lea r15, [0x140380110]
mov rcx, rbx
sar rdi, 6
call fcn.140257a9c
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140264b3d
lea rax, [0x14033d6c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140264b4f
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140264b85
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140264b81
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140264b81
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140264ba3
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x140264bae
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140264a0d
jmp 0x1402649d4
Function at 0x140001350
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
test rax, rax
je 0x140001401
xor edx, edx
test rbx, rbx
je 0x140001401
cmp rbx, 0x40
jb 0x1400013ea
movdqa xmm2, xmmword [0x1400cc590]
mov r8, rbx
and r8, 0xffffffffffffffc0
add rax, 0x20
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x40], xmm0
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rdx, r8
jb 0x1400013a0
cmp rdx, rbx
jae 0x1400013fe
lea rax, [rdx + rcx]
sub rbx, rdx
xor byte [rax], 0xab
lea rax, [rax + 1]
sub rbx, 1
jne 0x1400013f1
mov rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140001410
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ce040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x38], 1
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x38]
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], 8
mov ecx, 0xf
mov qword [rbp - 0x40], rcx
movabs rax, 0xddbefdcad0b8f4c3
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], dil
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rcx
mov byte [rbp - 0x30], dil
mov dword [rbp - 0x60], 1
mov ebx, edi
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [rbp + rbx - 0x58]
not r9b
cmp rdi, rcx
jae 0x1400014ce
lea rax, [rdi + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rcx, 0xf
cmova rax, qword [rbp - 0x30]
mov byte [rax + rdi], r9b
mov byte [rax + rdi + 1], 0
jmp 0x1400014d7
lea rcx, [rbp - 0x30]
call fcn.1400ca6e0
inc rbx
cmp rbx, 8
jae 0x1400014ea
mov rcx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x20]
jmp 0x1400014a0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [0x1400cc490]
call fcn.140001010
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140001543
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000153e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000153e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400caa70
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400caa50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret