joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004eaac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea r8, [0x140065960]
mov rcx, qword [0x140075a48]
mov edx, 0x68
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14004eb5e
mov rcx, qword [0x140075a48]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004eb5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14004eb5e
mov rcx, qword [0x140075a48]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov dword [rsi], ecx
shr rcx, 1
call fcn.14000c318
mov ecx, dword [rsi]
test ecx, ecx
je 0x14004eb58
lea ecx, [rbx + 1]
mov r9d, ebx
mov r8b, byte [rcx + rbp]
add ebx, 2
sub r8b, 0x41
mov cl, byte [r9 + rbp]
dec cl
shr r9, 1
shl cl, 4
or r8b, cl
mov byte [r9 + rax], r8b
mov ecx, dword [rsi]
cmp ebx, ecx
jb 0x14004eb2e
shr ecx, 1
mov dword [rsi], ecx
jmp 0x14004eb60
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004ed48
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
and qword [rax + 0x20], 0
and dword [rax + 0x18], 0
lea r8, [rax + 0x18]
lea rdx, [rax + 0x20]
mov rcx, qword [rdi]
call fcn.14003b6f8
test al, al
je 0x14004ee02
mov ebx, dword [rsp + 0x70]
test ebx, ebx
je 0x14004ed9d
mov rax, qword [rsp + 0x78]
mov ecx, ebx
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x14004ed91
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9b, byte [rbp + 0x10]
mov r8d, ebx
mov rdx, qword [rsp + 0x78]
mov ecx, dword [rbp + 0x30]
call fcn.14004bf70
mov r14, rax
test ebx, ebx
je 0x14004edd6
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
xor byte [rdx], 0x55
inc rdx
sub rcx, 1
jne 0x14004edca
mov rcx, qword [rsp + 0x78]
call fcn.14000c2e4
test r14, r14
je 0x14004ee02
mov r9b, byte [rbp + 0x11]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x30]
call fcn.14004c360
mov qword [rbp + 0x28], rax
test rax, rax
jne 0x14004ee39
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14004ee35
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004ee35
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14004ee35
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor al, al
jmp 0x14004ee6e
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x14004ee6c
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14004ee6c
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov edx, ebx
lock xadd dword [rdi + 0xc], edx
add edx, ebx
jne 0x14004ee6c
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x141f67058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141f671df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141f67089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f6706f
add dl, dl
jne 0x141f67096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f670f6
xor eax, eax
add dl, dl
jne 0x141f670a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141f671ad
add dl, dl
jne 0x141f670b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f670c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f670d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f670dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141f670ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141f6707e
mov eax, 1
add dl, dl
jne 0x141f67106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141f67113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f670fb
sub eax, ebx
mov ebx, 1
jne 0x141f6714c
mov ecx, 1
add dl, dl
jne 0x141f6712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141f6713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f67123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f6707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141f67168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141f67175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141f6715d
cmp eax, 0x7d00
jae 0x141f6719b
cmp eax, 0x500
jb 0x141f67196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f6707e
cmp eax, 0x7f
ja 0x141f6719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141f6707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141f671d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141f6707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003724
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
call fcn.140094060
xor r14d, r14d
test eax, eax
je 0x140003767
cmp qword [rdi - 0x10], r14
jbe 0x14000375f
lea rbx, [rdi + 0x18]
add rbx, qword [rdi - 0x18]
jmp 0x140003762
mov rbx, r14
mov rbx, qword [rbx]
jmp 0x14000376a
mov rbx, r14
test rdi, rdi
jne 0x140003774
mov rax, r14
jmp 0x140003781
mov edx, 0xfffc
mov rcx, rdi
call fcn.1401cd1c8
test rbx, rbx
je 0x140003815
cmp dword [rbx + 0x50], r14d
je 0x140003815
lea r8, [0x140250b04]
mov rdx, rax
mov rcx, rdi
call fcn.14009bda0
lea rsi, [0x1402c5a40]
mov ecx, 0x8000
mov rdx, rsi
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x38], r14
mov r8, rsi
mov qword [rsp + 0x30], r14
mov r9d, eax
lea r14, [0x1402c3a40]
mov dword [rsp + 0x28], 0x1000
xor edx, edx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rax, ebx
lea r8, [0x140250b08]
add rax, rdi
mov ebx, 0x10000
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9, r14
mov rcx, rsi
call fcn.140001138
jmp 0x140003835
mov ebx, 0x10000
lea rsi, [0x1402c5a40]
mov edx, ebx
lea r8, [0x14025033c]
mov rcx, rsi
mov r9, rdi
call fcn.140001138
mov rdx, rbx
mov rcx, rsi
call fcn.1401cd1c8
cmp byte [rbp], 0x2e
mov rdx, rax
mov rcx, rsi
jne 0x14000385a
lea r8, [0x140250b10]
call fcn.14009bda0
jmp 0x140003868
lea r8, [0x140250b04]
call fcn.14009bda0
inc eax
movsxd rcx, eax
lea r8, [0x14025033c]
sub rbx, rcx
mov r9, rbp
mov rdx, rbx
add rcx, rsi
call fcn.140001138
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140008038
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000805f
and qword [rdx], 0
mov r8, qword [rcx + 0x38]
lea r12, [0x1402c1a40]
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140250d3c]
mov rdx, r12
lea rcx, [rbp + 0x38]
call fcn.1401cac70
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14000822e
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401cb5dc
mov r9, qword [rbp + 0x38]
lea rcx, [0x1402c4a40]
mov r8d, reloc.WS2_32.dll_recv
lea r15d, [r8 - 0xf]
mov edx, r15d
call fcn.1401cd794
mov rax, qword [0x1402c4a40]
cmp rax, qword [0x1402bda50]
jne 0x140008225
mov rax, qword [0x1402c4a48]
cmp rax, qword [0x1402bda58]
jne 0x140008225
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 0x15]
mov r8d, r15d
call fcn.1401cb5dc
mov r9, qword [rbp + 0x38]
lea r8d, [r15 + 3]
mov edx, r15d
lea rcx, [rbp + 0x30]
call fcn.1401cd794
cmp rax, 4
jne 0x140008225
mov ecx, dword [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 0x38]
lea edx, [r15 - 5]
sub edx, eax
mov dword [rbp + 0x30], eax
mov r8d, r15d
call fcn.1401cb5dc
movsxd rdx, dword [rbp + 0x30]
mov eax, 0xffffffff
mov rcx, rdx
cmp rdx, rax
jae 0x140008175
cmp rax, rdx
je 0x140008175
mov eax, 0xffffffe7
cmp rdx, rax
jae 0x140008175
add rcx, 0x18
call fcn.1401cd85c
mov edx, dword [rbp + 0x30]
jmp 0x140008177
xor eax, eax
movsxd rdx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call fcn.140093e30
mov rdi, rax
test rbx, rbx
je 0x140008193
mov qword [rbx], rax
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov r9, qword [rbp + 0x38]
mov rcx, rdi
call fcn.1401cd794
movsxd rcx, dword [rbp + 0x30]
cmp rax, rcx
jne 0x140008225
test rbx, rbx
jne 0x140008225
mov rcx, qword [rsi + 0x38]
lea rdx, str..msh
and qword [rbp + 0x40], rbx
call fcn.140003724
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x1000
mov r8, rax
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140252588]
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.1401cac70
mov r9, qword [rbp + 0x40]
test r9, r9
je 0x14000821d
movsxd r8, dword [rbp + 0x30]
mov rdx, r15
mov rcx, rdi
call fcn.1401cc2a4
mov rcx, qword [rbp + 0x40]
call fcn.1401cb220
mov rcx, rdi
call fcn.140093f18
mov rcx, qword [rbp + 0x38]
call fcn.1401cb220
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400083e4
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1402bced0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0xbe0
xor r8d, r8d
xor edx, edx
call fcn.140094114
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140008460
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x140008460
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x70], 0
mov ecx, 0x18
mov dword [rbx + 0x994], 4
call fcn.140094568
mov rcx, rax
mov qword [rbx], rax
call fcn.14009cdbc
or edi, 0x118
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x90], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x1400084cc
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008513
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
lea rcx, [rbx + 0x94]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
test rdi, rdi
je 0x1400084ec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x41]
mov ecx, edx
sub ecx, 0x80
je 0x140008564
cmp ecx, 0x7f
je 0x14000855b
mov dword [rbx + 0x9a4], edx
jmp 0x14000856e
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x1400084de
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x94]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1400084de
and dword [rbx + 0x9a4], 0
jmp 0x14000856e
mov dword [rbx + 0x9a4], 3
mov rax, qword [rbx]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x9a8]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401c3cc0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14000cf70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, qword [0x1402c03c8]
xor eax, eax
and dword [rsp + 0x30], 0
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f8a
mov dword [0x1402e5bdc], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f03
mov dword [0x1402e5bc4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f89
mov dword [0x1402e5bcc], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f8b
mov dword [0x1402e5c50], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f01
mov dword [0x1402e5bb8], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f88
mov dword [0x1402e5bd0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f86
mov dword [0x1402e5bd8], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f83
mov dword [0x1402e5be0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f85
mov dword [0x1402e5bc8], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f82
mov dword [0x1402e5bc0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f84
mov dword [0x1402e5c54], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f04
mov dword [0x1402e5bbc], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
mov edx, 0x7f02
mov dword [0x1402e5bd4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000c9b8
lea rcx, [rsp + 0x30]
mov dword [0x1402e5be4], eax
mov dword [rsp + 0x30], 0x18
call qword [sym.imp.USER32.dll_GetCursorInfo]
mov rcx, qword [rsp + 0x38]
call fcn.14000c9b8
mov ecx, eax
call fcn.14000c8f0
mov ecx, 0x1d
mov dword [reloc.WS2_32.dll_connect], eax
call fcn.1401cd85c
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.140093e30
mov ecx, 0x58
mov rbx, rax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 5
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov dl, byte [reloc.WS2_32.dll_connect]
xor r8d, r8d
mov byte [rbx + 4], dl
mov rcx, rdi
mov rdx, rbx
mov word [rbx + 2], ax
call fcn.14009b1b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenThread]
and qword [rsp + 0x28], 0
lea r8, [0x14000ce3c]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [0x1402c0398], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x60]
mov qword [0x1402c03b8], rax
add rsp, 0x50
pop rdi
ret
Function at 0x14000e468
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1402c0790], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x14000e4e5
cmp edx, 2
jl 0x14000e4cf
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000e4cf
and qword [rsp + 0x28], 0
lea r8, [0x14000d56c]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000e4cf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402c0790]
mov r8d, ebx
mov rdx, rdi
call fcn.14009e8e8
mov eax, ebx
jmp 0x14000e50a
xor esi, esi
jmp 0x14000e4f8
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x140001950]
call fcn.14000dc08
test eax, eax
jne 0x14000e4e9
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e7a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x7580
call fcn.1401c4230
sub rsp, rax
mov rax, qword [0x1402bced0]
xor rax, rsp
mov qword [rsp + 0x7570], rax
mov rsi, qword [rcx]
xor r15d, r15d
mov rbp, qword [rcx + 8]
mov edi, r15d
mov ebx, r15d
mov dword [rsp + 0x30], r15d
jmp 0x14000e86a
mov rcx, qword [0x1402bda70]
lea rdx, [rsp + 0x40]
mov r8d, 0x7530
movsxd rax, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rax
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e879
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000e879
cmp dword [0x1402bda64], r15d
jne 0x14000e879
add ebx, eax
mov r14d, ebx
jmp 0x14000e83b
add edi, eax
mov edx, ebx
movsxd rax, edi
lea rcx, [rsp + 0x40]
sub edx, edi
add rcx, rax
mov r9, rbp
mov r8, rsi
call fcn.14000dc08
test eax, eax
jne 0x14000e839
cmp edi, ebx
mov eax, r15d
cmove ebx, r15d
cmp edi, r14d
cmovne eax, edi
mov edi, eax
cmp dword [0x1402bda64], r15d
je 0x14000e7f2
jmp 0x14000e883
mov dword [0x1402bda64], 1
xor eax, eax
mov rcx, qword [rsp + 0x7570]
xor rcx, rsp
call fcn.1401c3cc0
lea r11, [rsp + 0x7580]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000f45c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x14000f4b7
cmp dword [0x1402c03e4], 1
jne 0x14000f486
cmp dword [0x1402bda64], 0
jne 0x14000f486
xor eax, eax
jmp 0x14000f539
mov eax, dword [rsp + 0x60]
lea r9, [0x140001950]
and dword [0x1402c03e0], 0
mov dword [0x1402bda68], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.14000f254
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.140094114
cmp dword [0x1402c03e4], 1
lea rcx, [0x140001950]
mov dword [0x1402c0410], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x14000f505
cmp dword [0x1402bda64], 0
jne 0x14000f505
mov rcx, rax
call fcn.1401cc400
jmp 0x14000f47f
and qword [rsp + 0x28], 0
lea r8, [fcn.14000f058]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x1402c0420], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14000f540
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1402c0790]
mov dword [0x1402bda64], 1
test rbx, rbx
je 0x14000f57f
mov rcx, rbx
call fcn.140094060
test eax, eax
je 0x14000f577
mov rcx, qword [rbx + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
and qword [0x1402c0790], 0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r15
mov r10d, dword [0x1402c0434]
mov ebp, edx
mov r11d, dword [0x1402c041c]
mov eax, r10d
cdq
xor r13d, r13d
idiv r11d
mov r15, r8
mov r12d, ecx
mov r9d, r13d
mov ebx, edx
test edx, edx
je 0x14000f773
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x14000f776
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x1402c03f8]
test ebx, ebx
je 0x14000f78e
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x14000f791
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x14000f81f
mov eax, dword [0x1402c03e8]
cdq
idiv r11d
test edx, edx
je 0x14000f7b7
mov eax, r11d
sub eax, edx
add eax, dword [0x1402c03e8]
jmp 0x14000f7bd
mov eax, dword [0x1402c03e8]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x1402c0444]
movsxd rdx, eax
mov eax, dword [0x1402c0444]
add rdx, r15
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
lea rcx, [rcx*4 + 3]
shr rcx, 2
cmp rdx, rax
cmova rcx, r13
test rcx, rcx
je 0x14000f817
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x14000f801
inc r8d
jmp 0x14000f780
mov rbx, qword [rsp + 0x18]
mov eax, r9d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
pop r15
pop r13
ret
Function at 0x140010ea8
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1402bced0]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x140010edf
xor eax, eax
jmp 0x140011069
cmp ebx, 6
jne 0x140010f00
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea ecx, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x140011069
cmp ebx, 7
jne 0x140010f0a
lea ecx, [rbx - 6]
jmp 0x140010ef0
cmp ebx, 8
jne 0x140010f1a
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140010ef6
cmp ebx, 9
jne 0x140010f50
mov qword [rsp + 0x28], rsi
lea r8, [0x14000d56c]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140010ef6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010ef6
cmp ebx, 5
jg 0x140010ed8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140010ed8
lea r8, [rbp - 0x14]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140010fcc
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010ed8
sub ebx, 1
je 0x14001101b
sub ebx, 1
je 0x140011003
sub ebx, 1
je 0x140010ff9
sub ebx, 1
je 0x140010ff2
cmp ebx, 1
jne 0x14001105d
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140011034
mov ecx, 1
jmp 0x140010fe7
mov dword [rsp + 0x20], 1
jmp 0x140011007
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x1e]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x140011034
mov edx, 0x80000000
test r14d, r14d
je 0x14001102c
mov ecx, 4
jmp 0x14001102e
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x14001105d
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0xc], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c3cc0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14001108c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareOpen_SourceMeshAgent2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ecx, ecx
test eax, eax
jne 0x1400110f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x1400110bc
mov rcx, qword [rsp + 0x40]
lea rdx, str.KeyStore
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret