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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x810
mov rdi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov qword [rsp + 0x850], r8
mov qword [rsp + 0x858], r9
lea rbp, [rsp + 0x30]
lea r9, [rsp + 0x850]
mov r8, rdx
mov r12, rcx
mov rax, qword [rdi]
mov qword [rsp + 0x808], rax
xor eax, eax
lea rax, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x20], 0x7d0
mov qword [rsp + 0x28], r9
mov rdx, rax
call fcn.1004048b0
test rax, rax
mov rsi, rax
mov rbx, qword [rsp + 0x20]
je 0x10040331d
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rax
call sub.cygwin1.dll_fwrite
cmp rax, rbx
jb 0x1004032f0
cmp rsi, rbp
je 0x1004032c4
mov rcx, rsi
call sub.cygwin1.dll_free
cmp rbx, 0x7fffffff
ja 0x100403312
mov rcx, qword [rsp + 0x808]
xor rcx, qword [rdi]
mov eax, ebx
jne 0x10040332c
add rsp, 0x810
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp rsi, rbp
mov ebx, 0xffffffff
je 0x1004032cd
call sub.cygwin1.dll___errno
mov ebp, dword [rax]
mov rcx, rsi
call sub.cygwin1.dll_free
call sub.cygwin1.dll___errno
mov dword [rax], ebp
jmp 0x1004032cd
call sub.cygwin1.dll___errno
mov dword [rax], 0x8b
mov rcx, r12
mov ebx, 0xffffffff
call 0x100403340
jmp 0x1004032cd
call sub.cygwin1.dll___stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
or word [rcx + 0x10], 0x40
ret
Function at 0x140002425
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005730
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008378
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000a1b0
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000d00d
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetTempFileNameA
add rsp, 0x20
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.140005750
add rsp, 0x28
lea rcx, [0x14000e55c]
pop rdx
call fcn.14000a1b0
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057d0
add rsp, 0x20
push qword [0x14000e55c]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400082b4
add rsp, 0x20
push qword [0x14000e55c]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008410
add rsp, 0x20
push qword [0x14000ea80]
add rsp, 0xfffffffffffffff8
push qword [0x14000ea80]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400081a0
add rsp, 0x28
lea rcx, [0x14000e554]
pop rdx
call fcn.14000a1b0
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x140002590
mov rcx, qword [0x14000e55c]
push qword [0x14000ea80]
add rsp, 0xffffffffffffffe0
call fcn.14000a2d0
add rsp, 0x20
lea rcx, [0x14000e554]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000a1b0
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x1400025a6
mov r15, 1
cmp r15, qword [rsp]
jne 0x1400025a6
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov qword [0x14000e544], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057f0
add rsp, 0x20
mov qword [0x14000e54c], rax
mov rax, 1
jmp 0x1400025fc
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a340
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140002bd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a370
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_FindResourceA
add rsp, 0x20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140002c67
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_LoadResource
add rsp, 0x20
mov qword [0x14000e5e4], rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_SizeofResource
add rsp, 0x20
mov qword [0x14000e5dc], rax
push qword [0x14000e5dc]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005730
add rsp, 0x20
mov qword [rsp + 0x38], rax
push qword [0x14000e5dc]
push qword [0x14000e5e4]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.msvcrt.dll_memcpy
add rsp, 0x20
push qword [rsp + 0x38]
pop rax
mov qword [0x14000e5e4], rax
mov rax, qword [rsp + 0x30]
jmp 0x140002cb7
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a340
add rsp, 0x20
pop rax
add rsp, 0x48
ret
Function at 0x140003775
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rdx, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rdx
jne 0x14000378e
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a370
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14000a370
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14000a370
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, str.open
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call sub.SHELL32.dll_ShellExecuteExA
add rsp, 0x20
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_Sleep
add rsp, 0x20
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetExitCodeProcess
add rsp, 0x20
and rax, rax
je 0x1400038ba
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x1400038ba
jmp 0x1400038bc
jmp 0x14000386c
mov rax, 1
jmp 0x1400038c8
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a340
add rsp, 0x20
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a340
add rsp, 0x20
mov rcx, qword [rsp + 0x40]
sub rsp, 0x20
call fcn.14000a340
add rsp, 0x20
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x140004b0c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x140004b31
movsxd rdx, ecx
lea rcx, [0x140004a88]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140004b72
mov rbx, qword [0x14000e6a0]
test rbx, rbx
je 0x140004b72
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004b6a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbx + 0x10]
lea rcx, [0x14000e6a0]
call fcn.140009150
mov rbx, rdi
test rdi, rdi
jne 0x140004b3d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004bf4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14000eae0]
call fcn.140008b14
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140004cba
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140004c48
add rax, r9
cmp byte [rax], r10b
je 0x140004c40
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140004c7e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140004c79
cmp cl, 0x22
je 0x140004c6c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140004c5e
cmp byte [rax], 0
je 0x140004c79
mov rcx, rax
add rax, r9
jmp 0x140004ca0
mov rcx, rax
jmp 0x140004ca0
test dl, dl
je 0x140004c9d
mov rbx, rax
cmp dl, r10b
je 0x140004c93
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140004c85
cmp byte [rax], 0
mov rcx, rax
je 0x140004ca0
jmp 0x140004c74
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140004caa
test rdi, rdi
jne 0x140004cc4
test r8d, r8d
je 0x140004cb2
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140004c3b
test rdi, rdi
jne 0x140004cd6
movsxd rax, esi
jmp 0x140004cd9
test rbx, rbx
je 0x140004cd6
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140004cd9
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140004db4
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000eae0]
call fcn.140008b14
xor ecx, ecx
add rsp, 0x28
jmp fcn.140004bf4

Function at 0x140004ea8
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004ec8
test rax, rax
lea rdx, [0x14000c828]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret

Function at 0x1400055a8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0x64
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000568a
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x140005667
cmp eax, 1
jne 0x14000568a
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x140005660
sub eax, 1
je 0x140005659
sub eax, 1
je 0x140005634
cmp eax, 1
jne 0x14000568a
lea rcx, [rsp + 0xc0]
lea ebx, [rax + 0x45]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000568a
cmp byte [rsp + 0x15a], 1
je 0x14000568a
mov ebx, 0x4b
jmp 0x14000568a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005652
sub eax, 1
je 0x14000564b
cmp eax, 1
jne 0x14000568a
lea ebx, [rax + 0x40]
jmp 0x14000568a
mov ebx, 0x3c
jmp 0x14000568a
mov ebx, 0x32
jmp 0x14000568a
mov ebx, 0x14
jmp 0x14000568a
mov ebx, 5
jmp 0x14000568a
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140005685
cmp eax, 0xa
je 0x14000567e
cmp eax, 0x5a
jne 0x14000568a
lea ebx, [rax - 0x32]
jmp 0x14000568a
mov ebx, 0x1e
jmp 0x14000568a
mov ebx, 0xa
movsxd rax, ebx
add rsp, 0x160
pop rbx
ret
Function at 0x1400062a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14000ec00]
call fcn.140008f34
mov rsi, rax
test rax, rax
je 0x14000631d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400062e2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000631d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000a3e0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.14000a570
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400080cc
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x14000816b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x14000816b
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, [rsp + 0x38]
mov r8d, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000816b
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x44e
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xb
jae 0x140008196
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x140008196
mov rcx, qword [0x14000ec20]
lea rdx, [rax - 1]
call fcn.140008f34
mov rax, qword [rax + 0x10]
jmp 0x140008198
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400081a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.14000a3e0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x1400081df
cmp byte [rbx + rdi - 1], 0x5c
je 0x1400081df
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000a570
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1400082b4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400082c7
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x1400082c9
xor eax, eax
add rsp, 0x28
ret

Function at 0x140008378
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000a3e0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x1400083ea
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400083e1
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000a570
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008410
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x140008483
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000846f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x140008462
cmp al, 0x5c
je 0x140008462
cmp al, 0x2f
jne 0x14000846f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140008450
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x140008485
xor eax, eax
add rsp, 0x138
ret

Function at 0x140008490
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400084d6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1400088e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140008971
cmp byte [rdx], bl
je 0x140008971
mov rdx, rcx
mov rcx, qword [0x14000ec60]
call fcn.140008f34
mov r11, rax
test rax, rax
je 0x14000896d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000894f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.140008a20
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140008a08
test r8d, r8d
je 0x140008a08
mov rdx, rcx
mov rcx, qword [0x14000ec60]
call fcn.140008f34
test rax, rax
je 0x140008a04
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400089f1
mov rcx, rax
call fcn.140008a20
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008a20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x140008a6a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140008aa8
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
sub edx, 1
je 0x140008aa1
sub edx, 1
je 0x140008a99
cmp edx, 2
je 0x140008a93
mov rdx, rsi
jmp 0x140008af6
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x140008afe
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x140008afe
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x140008afe
mov rcx, rbx
call fcn.140008490
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140008aeb
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400092c0
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
or ebx, 0xffffffff
test rcx, rcx
je 0x1400094cf
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x40], r13
xor r13d, r13d
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400094c5
mov rcx, qword [0x14000e4f4]
xor edx, edx
mov r8d, 0x1000
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400094b7
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
lea r12, [0x14000c930]
nop word [rax + rax]
lea r9, [rsp + 0x60]
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x60]
mov r11, rsi
mov r9d, r10d
cmp r10d, 8
jb 0x14000945d
mov rdi, r10
shr rdi, 3
nop dword [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r12 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r12 + rax*4]
xor ebx, edx
sub rdi, 1
jne 0x140009390
test r9d, r9d
je 0x14000948e
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r12 + rdx*4]
xor ebx, eax
add r9d, 0xffffffff
jne 0x140009470
cmp r10d, 0x1000
je 0x140009350
mov rcx, qword [0x14000e4f4]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
not ebx
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140028f80]
mov dword [rax], 1
mov rax, qword [0x140028f90]
mov dword [rax], 1
mov rax, qword [0x140028fa0]
mov dword [rax], 1
mov rax, qword [0x140028f20]
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