joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400149d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d2b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d2b40]
test rbx, rbx
je 0x140014a2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014a23
test rsi, rsi
je 0x140014a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ccea0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ccea0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140014ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ccea0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b12a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b102
add rax, 1
cmp rax, 0x6b
je 0x14001b11f
cmp byte [rcx + rax], 0
jne 0x14001b0f8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b11f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b113

Function at 0x14001b4a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400d3650], 1
je 0x14001b518
lea rdi, [0x1400d3650]
mov rcx, rdi
call fcn.14001ada0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a720
mov esi, dword [0x1400d3650]
test esi, esi
jne 0x14001b528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140020678], eax
je 0x14001fef6
mov dword [0x1400d3650], 1
mov rcx, rbp
call fcn.14001aa10
test rbx, rbx
je 0x14001b518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b140
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b4f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001b4f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x14010f3d0]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140114b04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x140114b08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x140114b08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140114b08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x140114b04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140114b08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x140114b08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400149d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140114b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140114b40]
test rbx, rbx
je 0x140014a2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014a23
test rsi, rsi
je 0x140014a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014c60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14010f3e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010f3e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140014ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010f3e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b12a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b102
add rax, 1
cmp rax, 0x6b
je 0x14001b11f
cmp byte [rcx + rax], 0
jne 0x14001b0f8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b11f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b113

Function at 0x14001b4a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140115650], 1
je 0x14001b518
lea rdi, [0x140115650]
mov rcx, rdi
call fcn.14001ada0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a720
mov esi, dword [0x140115650]
test esi, esi
jne 0x14001b528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140020678], eax
je 0x14001fef6
mov dword [0x140115650], 1
mov rcx, rbp
call fcn.14001aa10
test rbx, rbx
je 0x14001b518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b140
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b4f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001b4f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140003c08
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x150
xor edi, edi
cmp r8d, dword [rsp + 0x190]
mov r12, r9
setae dil
mov ebx, r8d
mov rsi, rdx
mov r13d, ecx
test edi, edi
je 0x140003c52
mov r8d, dword [rsp + 0x190]
mov rcx, r9
jmp 0x140003d04
mov r14d, 0x40
lea rcx, [rsp + 0x70]
lea edx, [r14 - 0xa]
mov r8, r14
call fcn.1400c9a24
lea edx, [r14 + 0x1c]
lea rcx, [rsp + 0x30]
mov r8, r14
call fcn.1400c9a24
test ebx, ebx
je 0x140003ca2
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8, rbx
sub rcx, rsi
sub rdx, rsi
mov al, byte [rsi]
xor byte [rcx + rsi], al
xor byte [rdx + rsi], al
inc rsi
sub r8, 1
jne 0x140003c91
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.140003970
test eax, eax
je 0x140003d09
lea r9, [rsp + rbx + 0xb0]
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.140003970
mov edi, eax
test eax, eax
je 0x140003d09
lea ecx, [rbx + rbx]
lea rdx, [rsp + 0xb0]
cmp dword [rsp + 0x190], ecx
cmovb ecx, dword [rsp + 0x190]
mov r8d, ecx
mov rcx, r12
call fcn.1400c9a1e
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140004270
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor ebp, ebp
mov rdi, r9
mov ebx, r8d
lea r15d, [rbp + 0x10]
mov r12, rdx
mov rsi, rcx
cmp r8d, r15d
jbe 0x140004436
lea r9, [rax - 0x58]
xor r8d, r8d
xor edx, edx
call qword [0x1400d1038]
test eax, eax
je 0x140004465
lea edx, [rbp + 1]
xor r9d, r9d
mov r8, rdi
mov rcx, rsi
call qword [0x1400d1020]
test eax, eax
je 0x140004429
lea edi, [rbx + 0xf]
mov r13d, r15d
shr edi, 4
and ebx, 0xf
cmovne r13d, ebx
cmp edi, 2
jbe 0x140004325
lea eax, [rdi - 2]
xor r9d, r9d
xor r8d, r8d
shl eax, 4
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [0x1400d1080]
test eax, eax
je 0x140004429
lea eax, [r13 + 0x10]
lea r14d, [rdi - 2]
lea rcx, [rsp + 0x40]
shl r14d, 4
mov r8d, eax
mov ebx, eax
add r14, r12
mov rdx, r14
call fcn.1400c9a1e
mov r11d, r15d
lea rax, [rsp + rbx + 0x40]
sub r11d, r13d
xor edx, edx
mov rcx, rax
mov r8d, r11d
mov r15d, r11d
mov qword [rsp + 0x38], rax
call fcn.1400c9a24
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov ebx, 0x10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xa0], ebx
call qword [0x1400d1080]
test eax, eax
je 0x140004429
lea rdx, [rsp + 0x40]
mov r9, rbx
mov al, byte [rdx + 0x10]
xor byte [rdx], al
inc rdx
sub r9, 1
jne 0x1400043ac
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + r13 + 0x40]
mov r8, r15
mov ebx, r13d
call fcn.1400c9a1e
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xa0], 0x10
call qword [0x1400d1080]
mov ebp, eax
test eax, eax
je 0x140004429
movdqu xmm0, xmmword [rsp + 0x50]
shl edi, 4
lea rdx, [rsp + 0x40]
lea ecx, [rdi - 0x10]
mov r8, rbx
add rcx, r12
movdqu xmmword [r14], xmm0
call fcn.1400c9a1e
mov rcx, qword [rsp + 0x30]
call qword [0x1400d1078]
jmp 0x140004465
cmp ebx, r15d
jne 0x140004465
lea rax, [rsp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor edx, edx
mov dword [rsp + 0xa0], r15d
call qword [0x1400d1080]
mov ebp, eax
lea r11, [rsp + 0x60]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000811c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
xor ebx, ebx
mov esi, edx
mov rdi, rcx
mov r12, r8
lea r15d, [rbx + 0x40]
lea rcx, [rsp + 0x50]
lea edx, [rbx + 0x36]
mov r8, r15
mov ebp, r9d
call fcn.1400c9a24
lea edx, [rbx + 0x5c]
lea rcx, [rsp + 0x90]
mov r8, r15
call fcn.1400c9a24
cmp esi, ebx
jbe 0x14000819a
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov r8, rsi
sub rcx, rdi
sub rdx, rdi
mov al, byte [rdi]
xor byte [rcx + rdi], al
xor byte [rdx + rdi], al
inc rdi
sub r8, 1
jne 0x140008189
lea rdx, [rbp + 0x40]
mov ecx, r15d
call qword [0x1400d1648]
mov rsi, rax
cmp rax, rbx
je 0x1400082c0
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8, r15
call fcn.1400c9a1e
lea rcx, [rsi + 0x40]
mov r8, rbp
mov rdx, r12
call fcn.1400c9a1e
lea r8d, [rbp + 0x40]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov ecx, 0x8004
mov dword [rsp + 0x20], 0x14
call fcn.140003970
cmp eax, ebx
je 0x1400082b7
mov ebp, dword [rsp + 0x128]
mov r12d, dword [rsp + 0x138]
mov ecx, r15d
lea rdx, [r12 + rbp + 0x54]
call qword [0x1400d1648]
mov rdi, rax
cmp rax, rbx
je 0x1400082b7
lea rdx, [rsp + 0x90]
mov rcx, rax
mov r8, r15
call fcn.1400c9a1e
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x30]
mov rax, qword [rcx]
mov qword [rdi + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 0x48], rax
mov eax, dword [rcx + 0x10]
mov dword [rdi + 0x50], eax
cmp rdx, rbx
je 0x14000826b
cmp ebp, ebx
je 0x14000826b
lea rcx, [rdi + 0x54]
mov r8, rbp
call fcn.1400c9a1e
mov rdx, qword [rsp + 0x130]
cmp rdx, rbx
je 0x14000828a
cmp r12d, ebx
je 0x14000828a
lea rcx, [rbp + rdi + 0x54]
mov r8, r12
call fcn.1400c9a1e
mov r9, qword [rsp + 0x140]
lea r8d, [rbp + r12 + 0x54]
mov rdx, rdi
mov ecx, 0x8004
mov dword [rsp + 0x20], 0x14
call fcn.140003970
mov rcx, rdi
mov ebx, eax
call qword [0x1400d1638]
mov rcx, rsi
call qword [0x1400d1638]
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000fc40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x150
mov dil, r9b
mov r13, rcx
mov rbp, r8
lea eax, [rdi + 5]
mov bl, dl
lea rcx, [rsp + 0x51]
mov byte [rsp + 0x32], al
xor eax, eax
xor edx, edx
mov r8d, 0xff
xor esi, esi
mov byte [rsp + 0x30], 3
mov qword [rsp + 0x33], rax
mov qword [rsp + 0x3b], rax
mov dword [rsp + 0x43], eax
mov byte [rsp + 0x47], al
mov byte [rsp + 0x50], al
mov byte [rsp + 0x31], 1
call fcn.1400c9a24
cmp dil, 0x12
jae 0x14000fe9c
movzx r12d, dil
lea rcx, [rsp + 0x34]
mov rdx, rbp
mov r8, r12
mov byte [rsp + 0x33], bl
call fcn.1400c9a1e
movzx ecx, dil
xor r11b, r11b
add ecx, 3
xor dl, dl
test ecx, ecx
jle 0x14000fce8
movzx eax, r11b
inc r11b
xor dl, byte [rsp + rax + 0x31]
movzx eax, r11b
cmp eax, ecx
jl 0x14000fcd5
mov byte [rsp + r12 + 0x34], dl
mov rcx, r13
mov edx, 0xc
mov byte [rsp + r12 + 0x35], 4
call qword [0x1400d18e0]
mov edi, 0x64
mov ecx, edi
call qword [0x1400d1680]
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x188]
lea r8d, [rdi - 0x4c]
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [0x1400d1670]
test eax, eax
je 0x14000fe88
cmp dword [rsp + 0x188], 0x18
jne 0x14000fe88
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [0x1400d1498]
mov ecx, edi
call qword [0x1400d1680]
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x188]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov rcx, r13
call qword [0x1400d1660]
test eax, eax
je 0x14000fe79
mov edx, dword [rsp + 0x188]
cmp edx, 6
jb 0x14000fe70
mov al, 5
cmp byte [rsp + 0x50], al
jne 0x14000fe62
cmp byte [rsp + 0x51], 1
jne 0x14000fe62
mov cl, byte [rsp + 0x52]
cmp cl, al
jb 0x14000fe59
or bl, 0x80
cmp byte [rsp + 0x53], bl
jne 0x14000fe59
sub cl, al
xor dl, dl
xor r9b, r9b
movzx r8d, cl
add r8d, 3
test r8d, r8d
jle 0x14000fde8
movzx eax, dl
inc dl
xor r9b, byte [rsp + rax + 0x51]
movzx eax, dl
cmp eax, r8d
jl 0x14000fdd6
movzx ebx, cl
cmp byte [rsp + rbx + 0x54], r9b
jne 0x14000fe50
cmp byte [rsp + rbx + 0x55], 4
jne 0x14000fe50
mov esi, 1
test cl, cl
je 0x14000fe9c
mov rdi, qword [rsp + 0x190]
test rdi, rdi
je 0x14000fe9c
mov rax, qword [rsp + 0x198]
test rax, rax
je 0x14000fe9c
mov byte [rax], cl
lea ecx, [rsi + 0x3f]
mov rdx, rbx
call qword [0x1400d1648]
mov qword [rdi], rax
test rax, rax
je 0x14000fe4c
lea rdx, [rsp + 0x54]
mov r8, rbx
mov rcx, rax
call fcn.1400c9a1e
jmp 0x14000fe9c
xor esi, esi
jmp 0x14000fe9c
lea rcx, str.ERROR_sr98_send_receive___Bad_CRC_data_n
jmp 0x14000fe69
lea rcx, str.ERROR_sr98_send_receive___Bad_data_size_ctl_code_n
jmp 0x14000fe69
lea rcx, str.ERROR_sr98_send_receive___Bad_header_n
call fcn.14000c030
jmp 0x14000fe9c
lea rcx, str.ERROR_sr98_send_receive___Read_size___u_n
jmp 0x14000fe97
call qword [0x1400d1650]
lea rcx, str.ERROR_sr98_send_receive___ReadFile__0x_08x__n
jmp 0x14000fe95
call qword [0x1400d1650]
lea rcx, str.ERROR_sr98_send_receive___WriteFile__0x_08x__n
mov edx, eax
call fcn.14000c030
lea r11, [rsp + 0x150]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret