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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x14004677d
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.140048b40
mov rdx, rdi
mov rcx, rax
call fcn.14007f828
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140046760
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140048c20
cmp edx, 1
je 0x14004679b
cmp edx, 0x18
je 0x14004679b
cmp edx, 3
je 0x140046796
cmp edx, 0x19
je 0x140046796
cmp edx, 0xb
jne 0x14004679e
movzx edi, cx
jmp 0x14004679e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.140048b40
lea rdx, [0x140098838]
mov r8d, edi
mov rcx, rax
call fcn.1400800a0
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140048c20

Function at 0x1400474e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140199180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140047561
mov r8, qword [0x140199178]
mov rcx, qword [0x140196abc]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x140199180]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rbx, qword [0x140199170]
jmp 0x14004754d
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14004754a
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140047538
lea rcx, [0x140047444]
mov rdx, rdi
call fcn.14007f998
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140047578
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x1400475a2
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140199178]
test rcx, rcx
jne 0x1400475e5
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, qword [0x140196abc]
movsxd r8, ebx
mov edx, 8
mov dword [0x140199180], eax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x140199180]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x140199178]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140199178], rcx
mov ecx, dword [0x140199180]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r9, qword [0x140199178]
mov rcx, qword [0x140196abc]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov ecx, dword [0x140199180]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rdi, rdi
jne 0x140047639
test rbp, rbp
je 0x140047660
lea rcx, [0x140199170]
mov edx, 0x28
call fcn.140048200
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x140047660
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400482b0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_HeapCreate]
mov qword [0x140199c70], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x140192a30], eax
call fcn.140049310
add rsp, 0x28
ret

Function at 0x140048410
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400484d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140048536
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x140199c70]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x140048561
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140199c70]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.140048f50
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140048610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140048640
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140048670
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x1400486a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140048740
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x140192a30], 0xffffffff
jne 0x14004876f
call fcn.1400482b0
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400486f0]
call fcn.14007f998
jmp 0x1400487a0
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
jne 0x1400487a0
call fcn.140049310
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400486f0]
call fcn.14007f998
add rsp, 0x28
ret

Function at 0x1400487b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x140048b40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140048b70
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140048be0
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140199c70]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140048c20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x140048e70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x140048ecb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x140048ecb
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x140048ecd
xor eax, eax
add rsp, 0x38
ret

Function at 0x140048ee0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x140048f10
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x140048fd0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x140049310
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x140199c70]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x140199c70]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x140192a30]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14006d6e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
call fcn.14006f560
mov edx, 0x98
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.14006f540
mov rbx, rax
test rax, rax
jne 0x14006d736
mov rcx, rdi
call fcn.14006f570
mov rcx, qword [rdi]
mov dword [rcx + 0x28], 0x38
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.14006d280]
lea rcx, str.JPEGMEM
mov qword [rbx], rax
lea rax, [fcn.14006d0b0]
mov qword [rbx + 8], rax
lea rax, [fcn.14006d1a0]
mov qword [rbx + 0x10], rax
lea rax, [fcn.14006cfc0]
mov qword [rbx + 0x18], rax
lea rax, [0x14006db00]
mov qword [rbx + 0x20], rax
lea rax, [0x14006da50]
mov qword [rbx + 0x28], rax
lea rax, [0x14006d870]
mov qword [rbx + 0x30], rax
lea rax, [0x14006cd70]
mov qword [rbx + 0x38], rax
lea rax, [0x14006cb10]
mov qword [rbx + 0x40], rax
lea rax, [0x14006d590]
mov qword [rbx + 0x48], rax
lea rax, [0x14006dbb0]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call qword [sym.imp.msvcrt.dll_getenv]
test rax, rax
je 0x14006d83f
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call qword [sym.imp.msvcrt.dll_sscanf]
test eax, eax
jle 0x14006d83f
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x14006d832
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x14006d836
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14007f998
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140199208], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140199218]
jne 0x14007f9e5
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov rcx, rbx
mov dword [0x140199240], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x140199208], 1
mov ecx, dword [0x140199240]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14007faba
mov rcx, qword [0x140196abc]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14007fae5
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rax, qword [0x140199210]
test rax, rax
je 0x14007fa35
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140199210], rbp
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14007fb00]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
mov ecx, dword [0x140199240]
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov rcx, qword [0x140196abc]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
test rax, rax
je 0x14007fae5
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400803c0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140196abc]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [0x140199a00]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov qword [0x140199a10], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140083928
mov rbx, qword [rsp + 0x30]
lea rax, [0x14008125c]
mov qword [rdi + 0xb0], rax
lea rax, [0x1400812c0]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140080d1c]
mov qword [rdi + 0x20], rax
lea rax, [0x140080bcc]
mov qword [rdi + 0x60], rax
lea rax, [0x140081364]
mov qword [rdi + 0xc8], rax
lea rax, [0x14008130c]
mov qword [rdi + 0xc0], rax
lea rax, [0x140080858]
mov qword [rdi + 0x68], rax
lea rax, [0x1400807fc]
mov qword [rdi + 0x48], rax
lea rax, [0x140080828]
mov qword [rdi + 0x50], rax
lea rax, [0x1400806ac]
mov qword [rdi + 0x58], rax
lea rax, [0x140081070]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140087f50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x140088017
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x140087ffc
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x140087fd8
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x140088010
add ecx, ebp
jmp 0x140088012
add ecx, ebx
test r10d, r10d
jne 0x140087fac
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140088db8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x140088e81
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x140088e67
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x140088e43
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x140088e7a
add ecx, ebp
jmp 0x140088e7c
add ecx, edi
test r11d, r11d
jne 0x140088e17
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005bc8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x140271510]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rdx, qword [rcx + 0x38]
lea r8, [0x1401e8470]
and qword [rbp + 8], 0
mov rbx, rcx
lea rcx, [rbp + 8]
call fcn.140174c70
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140005d65
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.140170bbc
mov r9, qword [rbp + 8]
lea rcx, [0x140275180]
mov esi, 1
mov edx, esi
lea r8d, [rsi + 0xf]
call fcn.140176048
mov rax, qword [0x140275180]
cmp rax, qword [0x140272110]
jne 0x140005d5c
mov rax, qword [0x140275188]
cmp rax, qword [0x140272118]
jne 0x140005d5c
mov rcx, qword [rbp + 8]
lea edx, [rsi - 0x15]
mov r8d, esi
call fcn.140170bbc
mov r9, qword [rbp + 8]
lea r8d, [rsi + 3]
mov edx, esi
lea rcx, [rbp]
call fcn.140176048
cmp rax, 4
jne 0x140005d5c
mov ecx, dword [rbp]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 8]
lea edx, [rsi - 5]
sub edx, eax
mov dword [rbp], eax
mov r8d, esi
call fcn.140170bbc
movsxd rdx, dword [rbp]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140005ccb
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14016df80
sub rsp, rcx
mov r9d, esi
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140077f24
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rcx
mov rcx, rax
movsxd r8, dword [rbp]
mov r9, qword [rbp + 8]
call fcn.140176048
movsxd rcx, dword [rbp]
cmp rax, rcx
jne 0x140005d5c
mov rcx, qword [rbx + 0x38]
lea rdx, str..msh
and qword [rbp + 0x10], 0
call fcn.140002b90
mov rdx, rax
lea r8, [0x1401e8df8]
lea rcx, [rbp + 0x10]
call fcn.140174c70
mov r9, qword [rbp + 0x10]
test r9, r9
je 0x140005d5c
movsxd r8, dword [rbp]
mov rdx, rsi
mov rcx, rdi
call fcn.1401748f0
mov rcx, qword [rbp + 0x10]
call fcn.140170800
mov rcx, qword [rbp + 8]
call fcn.140170800
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14016d990
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140005f18
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140271510]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0x788
xor r8d, r8d
xor edx, edx
call fcn.1400780d8
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x60], rax
test rax, rax
je 0x140005f8e
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x140005f8e
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x60], 0
mov ecx, 0x18
mov dword [rbx + 0x580], 4
call fcn.14007846c
mov rcx, rax
mov qword [rbx], rax
call fcn.14007e7c0
or edi, 0x18
mov qword [rbx + 0x30], rax
lea rcx, [rbx + 0x80]
mov dword [rbx + 0x7c], edi
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x21]
mov ecx, edx
sub ecx, 0x80
je 0x140005ff9
cmp ecx, 0x7f
je 0x140005ff0
mov dword [rbx + 0x590], edx
jmp 0x140006003
and dword [rbx + 0x590], 0
jmp 0x140006003
mov dword [rbx + 0x590], 3
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x574]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016d990
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400080fc
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov ebx, edx
mov dil, cl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000818a
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, 1
movzx eax, dil
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], esi
cmp ebx, esi
jne 0x140008144
mov dword [rsp + 0x2c], 2
jmp 0x14000815b
cmp ebx, 3
jne 0x14000814f
mov dword [rsp + 0x2c], ebx
jmp 0x14000815b
xor eax, eax
cmp ebx, 4
cmove eax, esi
mov dword [rsp + 0x2c], eax
and dword [rsp + 0x30], 0
xor edx, edx
movzx ecx, dil
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov word [rsp + 0x2a], ax
mov ecx, esi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret