joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004941
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x140017914]
cmp r15, 1
jne 0x140004a27
push qword [0x14001798c]
pop rcx
call fcn.140009620
mov r15, rax
and r15, r15
jle 0x1400049bd
mov rcx, qword [0x14001798c]
call fcn.140009628
mov rcx, qword [0x14001798c]
call fcn.14000963c
or rax, rax
je 0x1400049bd
mov rbp, qword [0x140017994]
push qword [rbp + 0x10]
pop rcx
call fcn.14000fc50
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x1400049bb
mov rbp, qword [0x140017994]
push qword [rbp + 0x10]
pop rcx
call fcn.14000dcf8
jmp 0x14000497e
push qword [0x14001799c]
pop rcx
call fcn.140009620
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004a27
push 5
push 0
push 1
push qword [0x14001799c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.1400080d0
mov rcx, qword [0x14001799c]
call fcn.140009628
mov rcx, qword [0x14001799c]
call fcn.14000963c
or rax, rax
je 0x140004a27
mov rbp, qword [0x1400179a4]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x140004a04
mov rax, 1
jmp 0x140004a33
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008a90
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b07
movsxd rdx, ecx
lea rcx, [0x1400089ec]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400179b8]
test rbx, rbx
je 0x140008b7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008afd
cmp byte [rbx + 0x20], 0
je 0x140008afd
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008ac3
jmp 0x140008b7a
mov rbx, qword [0x1400179b8]
test rbx, rbx
je 0x140008b7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b72
cmp byte [rbx + 0x21], 0
je 0x140008b36
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008b62
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400179b8]
call fcn.1400111b4
mov rbx, rdi
test rdi, rdi
jne 0x140008b13
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c54
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 [0x140017f40]
call fcn.14001095c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008d1a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008ca8
add rax, r9
cmp byte [rax], r10b
je 0x140008ca0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008cde
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008cd9
cmp cl, 0x22
je 0x140008ccc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008cbe
cmp byte [rax], 0
je 0x140008cd9
mov rcx, rax
add rax, r9
jmp 0x140008d00
mov rcx, rax
jmp 0x140008d00
test dl, dl
je 0x140008cfd
mov rbx, rax
cmp dl, r10b
je 0x140008cf3
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008ce5
cmp byte [rax], 0
mov rcx, rax
je 0x140008d00
jmp 0x140008cd4
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d0a
test rdi, rdi
jne 0x140008d24
test r8d, r8d
je 0x140008d12
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008c9b
test rdi, rdi
jne 0x140008d36
movsxd rax, esi
jmp 0x140008d39
test rbx, rbx
je 0x140008d36
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008d39
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 0x140008e14
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140017f40]
call fcn.14001095c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008c54

Function at 0x140008f08
Capabilities:
Set environment variable

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

Function at 0x14000a494
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 [0x140018080]
call fcn.140010874
mov rsi, rax
test rax, rax
je 0x14000a50d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000a4d2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000a50d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140011a00
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.140011ba0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a9fc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000ab11
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000aaee
dec eax
jne 0x14000ab11
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000aa69
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000aae7
dec eax
je 0x14000aae0
dec eax
je 0x14000aab6
dec eax
jne 0x14000ab11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000aaaa
dec eax
je 0x14000aa9e
dec eax
jne 0x14000ab11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000ab11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000ab11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000ab11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000aad9
dec eax
je 0x14000aad2
dec eax
jne 0x14000ab11
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000ab11
mov ebx, 0x3c
jmp 0x14000ab11
mov ebx, 0x32
jmp 0x14000ab11
mov ebx, 0x14
jmp 0x14000ab11
mov ebx, 5
jmp 0x14000ab11
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000ab0c
cmp eax, 0xa
je 0x14000ab05
cmp eax, 0x5a
jne 0x14000ab11
lea ebx, [rax - 0x32]
jmp 0x14000ab11
mov ebx, 0x1e
jmp 0x14000ab11
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000be50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000bef9
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000bef9
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bef9
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bef9
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bef9
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000bef9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000bfa3
test rbx, rbx
je 0x14000bf38
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf2b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000bf2b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000bf38
mov edx, 1
mov rcx, rbx
call fcn.14000bdfc
test rdi, rdi
je 0x14000bf52
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000bfa3
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000bfa3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000bfa3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000bfa3
mov rcx, qword [0x1400180a0]
lea rdx, [rdi - 1]
call fcn.140010874
test rax, rax
je 0x14000bfa3
mov rax, qword [rax + 0x10]
jmp 0x14000bfa5
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000db94
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140018220], eax
add rsp, 0x28
ret

Function at 0x14000dbac
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.140011a00
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000dbeb
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000dbeb
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140011ba0
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 0x14000dc0c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000dc1f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000dc21
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000dcc4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000dcef
test dl, 2
je 0x14000dce2
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000dcf1
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000dcc4

Function at 0x14000dcf8
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000dcef
test dl, 2
je 0x14000dce2
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14000dcf1
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14000dcc4

Function at 0x14000ddfc
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.140011a00
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 0x14000de6e
lea rdx, [0x1400159e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000de65
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.140011ba0
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 0x14000de94
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000df07
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 0x14000def3
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000dee6
cmp al, 0x5c
je 0x14000dee6
cmp al, 0x2f
jne 0x14000def3
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000ded4
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000df09
xor eax, eax
add rsp, 0x138
ret

Function at 0x14000df20
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 0x14000df66
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 0x14000e670
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 0x14000e6e8
test r8d, r8d
je 0x14000e6e8
mov rdx, rcx
mov rcx, qword [0x140018230]
call fcn.140010874
test rax, rax
je 0x14000e6e4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000e6d1
mov rcx, rax
call fcn.14000e700
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 0x14000e700
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 0x14000e74a
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 0x14000e786
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14000e77f
dec edx
je 0x14000e777
cmp edx, 2
je 0x14000e771
mov rdx, rsi
jmp 0x14000e7d4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14000e7dc
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14000e7dc
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14000e7dc
mov rcx, rbx
call fcn.14000df20
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14000e7c9
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 0x14000f9d0
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14000fc3b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000fc36
mov rcx, qword [0x1400177fc]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000fc28
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x14000fa83
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140015a70]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14000faad
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x14000fbdb
mov esi, r10d
lea r10, [0x140015a70]
shr rsi, 3
nop word [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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x14000fb00
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140015a70]
test r9d, r9d
je 0x14000fbfc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x14000fbe0
cmp r10d, 0x80000
je 0x14000fa91
mov rcx, qword [0x1400177fc]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x14000f9d0
Function at 0x14000fc50
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14000fc3b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000fc36
mov rcx, qword [0x1400177fc]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x14000fc28
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x14000fa83
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140015a70]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14000faad
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x14000fbdb
mov esi, r10d
lea r10, [0x140015a70]
shr rsi, 3
nop word [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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + 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 [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x14000fb00
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140015a70]
test r9d, r9d
je 0x14000fbfc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x14000fbe0
cmp r10d, 0x80000
je 0x14000fa91
mov rcx, qword [0x1400177fc]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x14000f9d0
Function at 0x140002bc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 0xc18
call fcn.14001f5ac
test rax, rax
mov rbx, rax
je 0x140002c06
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov edx, 0xc18
mov rcx, rax
call fcn.1400353b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call fcn.14001f5a4
add rsp, 0x20
pop rbx
ret

Function at 0x140002c20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.mvhlewsi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 8], rax
je 0x140002cff
lea rdx, str.OpenEWSPort_W
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWSPort_A
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWS_W
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.OpenEWS_A
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.CloseEWS
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.EWSLastError
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.WriteEWS
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.ReadEWS
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.WriteReadEWS
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140002a90