joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rdx + 0x18]
mov r11, rdx
mov rdi, qword [rdx + 0x10]
mov r13, rcx
mov r9, rdx
cmp r12, 8
jb 0x140039866
mov r9, qword [rdx]
lea r10, [rdi + rdi]
xor edx, edx
movabs r8, 0xcbf29ce484222325
test r10, r10
je 0x1400398a4
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc rdx
xor r8, rax
imul r8, rcx
cmp rdx, r10
jb 0x140039890
mov rsi, qword [r13 + 0x18]
movsxd rbp, dword [r11 + 0x20]
mov r15, qword [r13 + 0x30]
mov rax, rbp
mov r14, qword [r13 + 8]
xor rax, r8
and r15, rax
mov qword [rsp + 0x50], rsi
mov rax, r15
add rax, rax
mov rbx, qword [rsi + rax*8 + 8]
cmp rbx, r14
je 0x1400399bc
mov rsi, qword [rsi + rax*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 8
lea rax, [rbx + 0x10]
jb 0x1400398ef
mov rax, qword [rbx + 0x10]
mov r9, r11
cmp r12, 8
jb 0x1400398fb
mov r9, qword [r11]
cmp rdi, qword [rbx + 0x20]
jne 0x14003993f
mov r8, rdi
test rdi, rdi
je 0x14003993a
movzx ecx, word [r9]
movzx edx, word [rax]
cmp cx, dx
jb 0x14003993f
sub r9, rax
cmp cx, dx
ja 0x14003993f
cmp r8, 1
je 0x14003993a
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec r8
movzx edx, word [rax]
cmp cx, dx
jae 0x14003991b
jmp 0x14003993f
cmp ebp, dword [rbx + 0x30]
je 0x14003994a
cmp rbx, rsi
je 0x1400399bc
mov rbx, qword [rbx + 8]
jmp 0x1400398e0
test rbx, rbx
je 0x1400399bc
mov rcx, qword [rsp + 0x50]
add r15, r15
mov rax, qword [rcx + r15*8]
cmp qword [rcx + r15*8 + 8], rbx
jne 0x14003997d
cmp rax, rbx
jne 0x140039972
mov qword [rcx + r15*8], r14
mov qword [rcx + r15*8 + 8], r14
jmp 0x140039989
mov r14, qword [rbx + 8]
mov qword [rcx + r15*8 + 8], r14
jmp 0x140039989
cmp rax, rbx
jne 0x140039989
mov rax, qword [rbx]
mov qword [rcx + r15*8], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140023d78
mov edx, 0x48
mov rcx, rbx
call fcn.14006a754
mov eax, 1
jmp 0x1400399be
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003c730
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rsi, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rsi]
xor r15d, r15d
movzx ebp, r8b
mov rbx, rdx
test rcx, rcx
je 0x14003c76c
jle 0x14003c769
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003c781
jle 0x14003c77d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003c794
jle 0x14003c791
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14003c7a9
jle 0x14003c7a5
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r15
lea r14, [rdi + 0xf8]
mov qword [rdi + 0x20], r15
mov rcx, r14
mov qword [rdi + 0x28], r15
mov rdx, rbx
call fcn.14001725c
mov byte [rdi + 0x1c], r15b
cmp qword [rbx + 0x18], 8
jb 0x14003c7d1
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
cmp rax, rcx
je 0x14003c814
test rcx, rcx
jle 0x14003c80e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003c91b
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003c856
test rcx, rcx
jle 0x14003c84f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14003c864
mov byte [rdi + 0x18], r15b
jmp 0x14003c8a7
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r15
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r15d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003c89f
test rcx, rcx
jle 0x14003c898
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003c8ec
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rsi
je 0x14003c8de
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x14003c8ec
test rcx, rcx
jle 0x14003c8d9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbx
jmp 0x14003c8ec
test rbx, rbx
jle 0x14003c8ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], r15
je 0x14003c91b
xor edx, edx
mov rcx, rdi
call fcn.14003ca40
test eax, eax
js 0x14003c92a
test bpl, bpl
jne 0x14003c92a
cmp qword [r14 + 0x18], 8
jb 0x14003c90e
mov r14, qword [r14]
mov rdx, r14
mov rcx, rdi
call fcn.14003d9d0
jmp 0x14003c92a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14003c950
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x14003c97c
jle 0x14003c978
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003c991
jle 0x14003c98d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c9a4
jle 0x14003c9a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14003c9b9
jle 0x14003c9b5
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x14003ca27
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x14003c9de
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x14003ca05
lea rcx, [rbx + 0x118]
cmp qword [rcx + 0x18], 8
jb 0x14003c9ff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x130], 8
lea rax, [rbx + 0x118]
jb 0x14003ca1d
mov rax, qword [rbx + 0x118]
mov qword [rbx + 0x128], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003ca40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14003ca7c
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x14003ca7c
test rcx, rcx
jle 0x14003ca78
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi + 0x10], rbx
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x14003ca8f
mov eax, 0xc0000141
jmp 0x14003cc14
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003cc0f
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
mov qword [rdi + 0x20], rdx
mov qword [rdi + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x14003cc0f
mov eax, 0x20b
mov qword [rsp + 0x50], rsi
cmp word [rdx + 0x18], ax
jne 0x14003cadc
mov byte [rdi + 0x19], 1
lea rbx, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x14003caed
mov byte [rdi + 0x19], 0
lea rbx, [rdx + 0xf8]
mov eax, dword [rdx + 0x34]
xor r8b, r8b
mov qword [rdi + 0x30], rax
mov eax, dword [rdx + 0x50]
mov dword [rdi + 0x38], eax
mov eax, dword [rdx + 0x54]
mov dword [rdi + 0x40], eax
mov eax, dword [rdx + 0x28]
mov dword [rdi + 0x3c], eax
mov rax, rdx
movzx r9d, word [rdx + 0x5c]
mov dword [rdi + 0x54], r9d
movzx eax, word [rdx + 0x5e]
mov dword [rdi + 0x5c], eax
mov qword [rsp + 0x20], rbx
movzx eax, word [rdx + 0x16]
shr ax, 0xd
not al
and al, 1
mov byte [rdi + 0x1a], al
test r8b, r8b
je 0x14003cb38
add rdx, 0xf8
jmp 0x14003cb3f
add rdx, 0xe8
mov eax, dword [rdx]
test eax, eax
je 0x14003cb99
mov edx, eax
mov r8d, 1
mov rcx, rdi
call fcn.14003d7b0
test rax, rax
je 0x14003cb99
test byte [rax + 0x10], 1
je 0x14003cb99
sub eax, dword [rdi + 0x10]
lea rdx, [rdi + 0xf8]
add eax, 0x10
mov byte [rdi + 0x1b], 1
lea rcx, [rdi + 0x138]
mov dword [rdi + 0x58], eax
call fcn.140044540
test al, al
je 0x14003cb92
xor edx, edx
lea rcx, [rdi + 0x138]
call fcn.140044680
mov rbx, qword [rsp + 0x20]
jmp 0x14003cb9d
mov byte [rdi + 0x1b], 0
mov rax, qword [rdi + 0x20]
xor esi, esi
cmp si, word [rax + 6]
jae 0x14003cc06
mov qword [rsp + 0x48], rbp
nop
mov rdx, qword [rdi + 0x68]
cmp rdx, qword [rdi + 0x70]
je 0x14003cbd9
movups xmm0, xmmword [rbx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbx + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rdi + 0x68], 0x28
jmp 0x14003cbe5
mov r8, rbx
lea rcx, [rdi + 0x60]
call fcn.14003deb0
mov rbx, qword [rsp + 0x20]
inc esi
mov rax, qword [rdi + 0x20]
add rbx, 0x28
mov qword [rsp + 0x20], rbx
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x14003cbb0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
jmp 0x14003cc14
mov eax, 0xc000007b
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a730
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003d9d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.140089280
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x40], 0x38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14003dc00
mov r12, rax
test rax, rax
je 0x14003dbb5
test rdi, rdi
jne 0x14003db46
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140089280
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14003dab4
mov eax, 0xc0150002
jmp 0x14003dbb7
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r15b
test rax, rax
jle 0x14003db35
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r15b, r15b
je 0x14003db14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x118]
lea rdx, [rbp - 0x70]
call fcn.140006890
nop
jmp 0x14003db6f
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14003dbb7
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0xf8]
lea rcx, [rsi + 0x118]
call fcn.14001725c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x14003db98
test rcx, rcx
jle 0x14003db91
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x48], rdi
mov rcx, rdi
test rcx, rcx
jg 0x14003dbb5
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
jne 0x14003dbe2
mov dword [rsi + 0x50], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14006a730
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14003dbb7
Function at 0x140042d10
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
lea r9, [rsp + 0x48]
mov rdi, rcx
mov qword [rsp + 0x48], rsi
add rcx, 0x68
lea edx, [rsi + 0x18]
lea r8d, [rsi + 8]
call fcn.14003fe40
cmp qword [rsp + 0x48], rsi
je 0x140042dcf
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rdi]
lea r9, [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov r8, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140042d98
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x68]
mov qword [rsp + 0x40], rsi
test rdx, rdx
je 0x140042dcf
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140042de2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x40], rsi
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140042e95
call fcn.140040050
test al, al
je 0x140042e95
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rdi + 0x20]
mov dword [rax + 0x1250], esi
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x20]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x20]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140042e47
jle 0x140042e43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov dword [rbx + 8], esi
mov rbx, qword [rdi + 0x28]
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x28], rsi
test rbx, rbx
je 0x140042e87
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140042e87
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140042e87
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140042e95
call fcn.14003fd10
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006a730
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140047910
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x1400f5b18], 0
jne 0x140047981
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x1400f5b08], rax
mov eax, dword [rsp + 0x48]
mov qword [0x1400f5b10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1400f5b18], rax
lea rax, [0x1400f5b08]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006a730
add rsp, 0x68
ret
Function at 0x140055bd0
Capabilities:
Terminate thread

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor ebp, ebp
test rcx, rcx
je 0x140055c05
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140055c1a
jle 0x140055c16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rbp
mov edi, ebp
nop dword [rax]
mov edx, edi
mov rcx, rbx
call fcn.140055920
inc edi
cmp edi, 4
jl 0x140055c20
cmp qword [rbx + 0x10], rbp
je 0x140055d0f
call fcn.14001333c
mov rcx, qword [rbx]
mov dword [rsp + 0x40], ebp
mov edx, dword [rcx + 8]
mov rcx, qword [rax]
mov dword [rsp + 0x44], edx
cmp rcx, 0xffffffffffffffff
je 0x140055ca5
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
mov dword [rsp + 0x28], ebp
mov r9d, 4
mov edx, 0x8005e020
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140055c9a
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], ebp
jl 0x140055ca5
lea rcx, [rbx + 8]
call fcn.140055d30
jmp 0x140055d03
mov qword [rsp + 0x78], rsi
mov rsi, qword [rbx + 8]
mov qword [rsp + 0x80], r14
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], bpl
jne 0x140055ce7
mov r8, qword [rdi + 0x10]
lea rdx, [rbx + 8]
lea rcx, [rbx + 8]
call fcn.140055da0
mov rcx, rdi
mov edx, 0x38
mov rdi, qword [rdi]
call fcn.14006a754
cmp byte [rdi + 0x19], bpl
je 0x140055cc0
mov r14, qword [rsp + 0x80]
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov rsi, qword [rsp + 0x78]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x50], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006a730
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x140056950
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
jne 0x140056975
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x10], 3
jne 0x140056a1f
cmp byte [rcx + 0x16], 0
jne 0x140056a1f
call fcn.140023e20
mov rbx, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
lea rdx, str.Wow64SuspendThread
lea rcx, [rsp + 0x20]
call fcn.1400069f0
nop
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140056a40
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140056a11
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056a0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140056a3a
call fcn.14006a754
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.140097d64
int3

Function at 0x140056a40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140045d40
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov r10, qword [rbx + 0x10]
jb 0x140056a76
mov rdx, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140056aa4
movabs r8, 0x100000001b3
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r8
cmp rcx, r10
jb 0x140056a91
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140025420
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140056aec
cmp rbx, qword [rsi + 8]
je 0x140056aec
mov rbx, qword [rbx + 0x30]
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140056af6
mov rcx, qword [r14]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp rax
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140056b10
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x970
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov edi, edx
mov rbx, rcx
cmp edx, 4
ja 0x140056cef
mov qword [r11 + 0x10], rbp
lea rcx, [r11 - 0x688]
xor edx, edx
mov qword [r11 + 0x18], rsi
mov r8d, 0x670
call fcn.140089280
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140089280
mov rbp, qword [rbx]
mov rax, qword [rbp + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140056ba0
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x2f0]
mov dword [rsp + 0x320], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140056bcd
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x2c8
call fcn.140089280
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100010
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rbp, qword [rsp + 0x988]
lea r8, [rsp + 0x360]
test sil, sil
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
js 0x140056cc6
mov edx, dword [r8]
test edi, edi
jne 0x140056c00
and edx, 0xfff0fffe
jmp 0x140056c43
cmp edi, 1
jne 0x140056c0d
and edx, 0xff0ffffb
jmp 0x140056c43
cmp edi, 2
mov ecx, 0xffffffbf
mov eax, 0xffffffef
cmovne eax, ecx
mov ecx, 0xf3ffffff
and eax, edx
mov edx, 0x3fffffff
cmp edi, 2
cmovne ecx, edx
mov edx, 0xfcffffff
and ecx, eax
mov eax, 0xcfffffff
cmp edi, 2
cmovne edx, eax
and edx, ecx
mov eax, edx
mov dword [r8], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x140056c62
btr edx, 8
mov dword [r8], edx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.140056950
test sil, sil
jne 0x140056c93
test al, al
je 0x140056cc4
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140056cad
test al, al
je 0x140056cc4
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140056cc4
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rsi, qword [rsp + 0x990]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14006a730
mov rbx, qword [rsp + 0x998]
add rsp, 0x970
pop rdi
ret
xor eax, eax
jmp 0x140056cce