joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dcec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
test rcx, rcx
je 0x1400dd0da
test rbx, rbx
je 0x1400dd0da
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400dcf14
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400dcf26
mov rdx, qword [rdi]
mov ecx, gethostbyname
call rax
jmp 0x1400dcf1e
mov ecx, gethostbyname
call fcn.1401148c8
mov rsi, rax
test rax, rax
jne 0x1400dcf44
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rbx
xor ebx, ebx
test rax, rax
je 0x1400dcfbd
test rdi, rdi
je 0x1400dcf99
cmp qword [rdi], rbx
jne 0x1400dcf77
cmp qword [rdi + 0x18], rbx
jne 0x1400dcf7d
cmp qword [rdi + 8], rbx
jne 0x1400dcf77
cmp qword [rdi + 0x10], rbx
je 0x1400dcf99
cmp qword [rdi + 0x18], rbx
je 0x1400dcfbd
cmp qword [rdi + 8], rbx
jne 0x1400dcf89
cmp qword [rdi + 0x10], rbx
je 0x1400dcfbd
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x1400dcfbd
mov qword [rax], rbx
lea rcx, [0x1400b6ca0]
mov qword [rax + 8], rcx
lea rcx, [0x1400dccc0]
mov qword [rax + 0x10], rcx
lea rcx, [fcn.14009b620]
mov qword [rax + 0x18], rcx
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400dce60]
mov rdx, r15
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r8, rax
test rax, rax
jne 0x1400dd02f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dcd40
mov ebx, eax
test eax, eax
je 0x1400dd0d3
test rdi, rdi
je 0x1400dd020
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1400dd028
mov rdx, qword [rdi]
mov rcx, rsi
call r8
mov eax, ebx
jmp 0x1400dcf2b
mov rcx, rsi
call fcn.140105000
mov eax, ebx
jmp 0x1400dcf2b
lea eax, [rbp + 5]
cmp eax, 6
ja case.0x1400dd04e.2
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0xdd0f0]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov ebx, 0xfffffffe
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov ebx, 0xffffffff
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov ebx, 1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov ebx, 2
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov ebx, SafeArrayGetElemsize
mov edx, ebx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400dcf2b
mov rbx, qword [rsp + 0x68]
mov eax, 0xfffffffe
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400f7500
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.1400ca930
lea rax, [0x1409c5b90]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400d4880
test eax, eax
jne 0x1400f75f8
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1401148c8
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1401148c8
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400f7660]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400f75f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400f75fa
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140102e48
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 8
mov rcx, qword [0x1409c6768]
mov r8d, 0x258
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1409c8a8c]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1409c8a90], rdi
or eax, 0xffffffff
and dword [rdi + 0x11c], 0
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
call fcn.14013bf84
mov rbx, qword [rsp + 0x30]
lea rax, [0x14010442c]
mov qword [rdi + 0xb0], rax
lea rax, [0x140104490]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140103058]
mov qword [rdi + 0x20], rax
lea rax, [0x140103230]
mov qword [rdi + 0x60], rax
lea rax, [0x140103478]
mov qword [rdi + 0xc8], rax
lea rax, [0x1401034e0]
mov qword [rdi + 0xc0], rax
lea rax, [0x140103d68]
mov qword [rdi + 0x68], rax
lea rax, [0x140103ba8]
mov qword [rdi + 0x48], rax
lea rax, [0x140103bd4]
mov qword [rdi + 0x50], rax
lea rax, [0x140103c04]
mov qword [rdi + 0x58], rax
lea rax, [0x140104204]
mov qword [rdi + 0x88], rax
lea rax, [0x140102fb8]
mov qword [rdi + 0xd0], rax
lea rax, [0x14010303c]
mov qword [rdi + 0xd8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140105f7c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x14010602d
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14010602d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x14010602d
mov rcx, qword [0x1409c88f8]
lea rdx, [rsi - 1]
call fcn.140090af0
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x14010602d
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x14010601d
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x14010602b
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x14010602d
jmp 0x14010600a
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x1401060fd
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1401060fd
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401060fd
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401060fd
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401060fd
mov r8d, SafeArrayGetElemsize
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1401060fd
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.14010f0d8
test eax, eax
je 0x1401060cd
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.14010f0d8
test eax, eax
jne 0x1401060e8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140106164
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.1400b7358
test eax, eax
je 0x140106164
test r14, r14
je 0x14010613f
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140106132
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140106132
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14010613f
mov edx, 1
mov rcx, r14
call fcn.1401062f4
test rdi, rdi
je 0x140106159
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140106164
test rbx, rbx
je 0x140106164
mov rax, qword [rbx + 0x10]
jmp 0x140106166
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x1401064f4
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x10]
mov edx, ecx
mov qword [r11 - 0x18], rax
xor esi, esi
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x140106566
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x14010655b
mov rcx, rdi
call fcn.14009a2cc
mov rbx, rax
test eax, eax
je 0x14010655b
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x14010655b
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140106620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x140106657
call fcn.1400868e0
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x1401066d0
mov rax, rdi
sub rax, 1
je 0x1401066c1
sub rax, 1
je 0x1401066ae
cmp rax, 2
je 0x14010669d
mov r8, rdi
mov rcx, r15
call fcn.1400b6ce0
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14010674a
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14010674a
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14010674a
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14010674a
mov r8, rbx
mov rcx, r15
call fcn.1400b6ce0
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x140106710
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x140106748
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.1400b6ce0
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140106770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x1409c6768]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14010694b
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x1401067d7
test rsi, rsi
je 0x1401068a0
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1401067fb
mov r8d, 1
mov rcx, r14
call fcn.140106620
mov dword [rsp + 0x34], eax
jmp 0x14010681c
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x1401068a4
test r8b, r8b
je 0x140106838
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x14010687a
mov rcx, qword [0x1409c6768]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x1401068a4
test r12d, r12d
jne 0x1401067c5
cmp r8b, 0xd
je 0x1401068ad
cmp r8b, 0xa
jne 0x1401067c5
dec rbx
jmp 0x140106931
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x140106931
cmp r8b, 0xa
jne 0x1401068b8
dec rbx
jmp 0x140106931
cmp r8b, 0xd
jne 0x140106931
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x1401068e0
mov r8d, 1
mov rcx, r14
call fcn.140106620
mov dword [rsp + 0x34], eax
jmp 0x1401068fd
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140106931
cmp qword [rdi], 0
je 0x140106910
inc dword [r14 + 0x14]
jmp 0x140106931
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140106970
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r12d, edx
mov r14, rcx
xor edx, edx
mov rcx, qword [0x1409c6768]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140106b68
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1401069e2
test rbp, rbp
je 0x140106aa8
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x140106a06
mov r8d, 2
mov rcx, r14
call fcn.140106620
mov dword [rsp + 0x34], eax
jmp 0x140106a23
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x140106aac
test dx, dx
je 0x140106a3e
mov word [rbx], dx
add rbx, 2
movzx edx, word [rsp + 0x30]
mov rdi, rbx
lea eax, [r13 - 1]
sub rdi, r15
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x140106a84
mov rcx, qword [0x1409c6768]
add r13d, 0x800
movsxd r9, r13d
mov r8, r15
add r9, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r15, rax
movsxd rax, edi
lea rbx, [r15 + rax*2]
test dx, dx
je 0x140106aac
mov edi, 0
test r12d, r12d
jne 0x1401069d0
cmp dx, 0xd
je 0x140106ab1
cmp dx, 0xa
je 0x140106ab7
jmp 0x1401069d0
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x140106abb
cmp dx, 0xa
jne 0x140106ae6
sub rbx, 2
xor edi, edi
mov rcx, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
sub rax, r15
sar rax, 1
mov qword [rcx], rax
mov rax, r15
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
jmp 0x140106b6b
cmp dx, 0xd
jne 0x140106abb
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x140106b11
mov r8d, 2
mov rcx, r14
call fcn.140106620
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x140106b2a
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x140106abd
cmp qword [rsi], 0
je 0x140106b42
add dword [r14 + 0x14], 2
jmp 0x140106abd
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140106abd
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140106b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14d, 0x1000
mov rcx, qword [0x1409c6768]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140106d2a
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140106bf9
test rdi, rdi
je 0x140106c87
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1401446e0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140106c11
xor r8b, r8b
jmp 0x140106c15
movzx r8d, byte [rbx]
cdqe
add rbx, rax
mov byte [rsp + 0x30], r8b
mov rdx, rbx
lea eax, [r14 - 5]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x140106c61
mov rcx, qword [0x1409c6768]
add r14d, 0x1000
movsxd r9, r14d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x140106c87
test r15d, r15d
jne 0x140106be7
cmp r8b, 0xd
je 0x140106c90
cmp r8b, 0xa
jne 0x140106be7
dec rbx
jmp 0x140106d15
test r15d, r15d
jne 0x140106d15
cmp r8b, 0xa
jne 0x140106c9b
dec rbx
jmp 0x140106d15
cmp r8b, 0xd
jne 0x140106d15
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x140106cc4
mov r8d, 1
mov rcx, rsi
call fcn.140106620
mov dword [rsp + 0x34], eax
jmp 0x140106ce1
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140106d15
cmp qword [rsi + 8], 0
je 0x140106cf4
inc dword [rsi + 0x14]
jmp 0x140106d15
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140106d50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x140106e4a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x140106dab
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x140106e0c
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x140106e04
sub edx, 1
je 0x140106dfb
cmp edx, 2
je 0x140106df4
mov r8, rbx
mov rdx, r14
call fcn.1400b6ce0
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x140106dda
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x140106dda
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x140106dda
mov rcx, rsi
call fcn.1400868e0
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x140106e3b
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x140106de0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x140106dd5
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010b984
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x14010b996
mov eax, r8d
jmp 0x14010ba00
lea rbx, [0x140199d20]
not r8d
cmp edx, 8
jb 0x14010b9d9
mov r10d, edx
shr r10, 3
mov r11d, 8
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
sub r11, 1
jne 0x14010b9b2
add edx, 0xfffffff8
sub r10, 1
jne 0x14010b9ac
test edx, edx
je 0x14010b9fa
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
add edx, 0xffffffff
jne 0x14010b9dd
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret

Function at 0x14010bac0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x14010bcaf
mov rax, rsp
push r12
push r14
sub rsp, 0xc8
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x14010bca4
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov ebp, dword [rsp + 0x100]
mov qword [rax + 0x18], rsi
mov qword [rax - 0x18], rdi
lea rdi, [0x1401a2330]
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
mov eax, dword [rcx]
movsxd r15, dword [rcx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
test r9, r9
movsxd r13, eax
cmovne rdi, r9
cmp ebp, 0x18
jne 0x14010bb4b
mov rcx, rdi
call fcn.1400b7be0
mov rdi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14010bb40
jmp 0x14010bb8a
cmp ebp, 0x19
jne 0x14010bb6f
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14010bb60
add rbx, rbx
jmp 0x14010bb8a
mov rcx, rdi
call fcn.14009b540
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14010bb81
mov rdx, rdi
cmp rbx, r15
jle 0x14010bbdd
mov r8d, ebx
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov rcx, r14
call qword [r12 + 0x20]
lea rdx, [r14 + 8]
mov r8, r13
lea rcx, [rsp + 0x20]
call fcn.1400b6ce0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140078640
mov edx, 1
mov rcx, r14
call qword [r12 + SafeArrayGetElemsize]
jmp 0x14010bc01
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400b6ce0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140078640
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400b6ce0
mov r13, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
test r15d, r15d
jle 0x14010bc58
xor edx, edx
lea rcx, [rsp + 0x20]
mov rax, r14
sub rax, rcx
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
inc rdx
xor byte [rcx], 0x36
xor byte [rax + rcx + 0x48], 0x5c
cmp rdx, r15
jl 0x14010bc40
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [r12 + SafeArrayPutElement]
mov r15, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xf0]
cmp ebp, 0x18
jne 0x14010bc87
mov rcx, rdi
call fcn.14009b620
jmp 0x14010bc94
cmp ebp, 0x19
je 0x14010bc94
mov rcx, rdi
call fcn.14009b620
mov rbp, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
add rsp, 0xc8
pop r14
pop r12
ret