joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eb400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, rdx
mov rsi, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov rax, rsi
sub rax, rdi
jae 0x1400eb45e
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, r14
xor r9d, r9d
call fcn.1400e8fb0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400eb614
cmp al, 2
je 0x1400eb623
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srcio_read_buf.rs
mov rcx, rdi
mov rdx, rsi
call fcn.1400f9fd0
mov rdx, qword [rcx + 0x18]
mov qword [rsp + 0x60], rdx
cmp rdx, 0xffffffffffffffff
je 0x1400eb5f7
mov rbx, r8
mov rdx, qword [r8]
mov qword [rsp + 0x50], rdi
add rdx, rdi
mov qword [rsp + 0x58], rdx
mov r13, qword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
cmp rax, 0x7fffffff
mov ebp, 0x7fffffff
cmovb rbp, rax
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov rdx, r13
mov r8, r14
xor r9d, r9d
call fcn.1400e8fb0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400eb614
mov rsi, qword [rsp + 0x20]
cmp al, 2
je 0x1400eb660
movzx r12d, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov r8d, ebp
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400eb62a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x1400eb62f
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rdi
call fcn.14003f9b0
cmp al, 0xd
jne 0x1400eb548
test r15, r15
je 0x1400eb548
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
lock inc qword [rdx]
jle 0x1400eb676
add rcx, 0x10
mov r8, qword [r15 + 0x10]
movzx r9d, byte [r15 + 0x18]
call fcn.14003f7e0
test rax, rax
cmovne rdi, rax
mov rcx, rdi
call fcn.14003f9b0
cmp al, 0xd
jne 0x1400eb65d
movzx ecx, r12b
and esi, 0x23
mov rax, qword [r13 + 0xd0]
xor rsi, 0x2f
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp r12b, dl
jne 0x1400eb58c
mov edx, esi
and edx, eax
or rdx, rcx
lock cmpxchg qword [r13 + 0xd0], rdx
jne 0x1400eb570
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400eb4a0
test rax, rax
je 0x1400eb4a0
mov rsi, qword [rdi - 1]
mov r12, qword [rdi + 7]
mov rcx, rsi
call qword [r12]
cmp qword [r12 + 8], 0
je 0x1400eb5dd
cmp qword [r12 + 0x10], 0x11
jb 0x1400eb5cb
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14016b208]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
dec rdi
mov rcx, qword [0x14016b208]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400eb4a0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, r14
xor r9d, r9d
call fcn.1400e8fb0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400eb61b
mov eax, 1
jmp 0x1400eb662
cmp al, 2
jne 0x1400eb6ca
mov rsi, qword [rsp + 0x20]
jmp 0x1400eb660
movsxd r8, eax
jmp 0x1400eb632
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rax, [r8 + rdx]
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
jbe 0x1400eb64b
mov qword [rbx + 0x18], rax
mov rcx, rax
add r8, rdx
jb 0x1400eb678
mov rsi, rdi
ud2
lea rcx, [0x140139b95]
Function at 0x1400eb6f0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov rdi, r8
mov qword [rsp + 0x28], rcx
mov r14, qword [rdx + 0x18]
cmp r14, 0xffffffffffffffff
je 0x1400eb882
mov rax, qword [rsp + 0xb0]
mov r15, qword [rdx + 0x10]
mov r13, qword [rdx + 0x20]
mov ebp, dword [rdx + 0x20]
mov rdx, qword [rdx + 0x10]

Function at 0x1400eb920
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x58], r9
mov rbx, r8
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0xe0]
mov r14, qword [rdx + 0x10]
mov r15, qword [rdx + 0x18]
mov r12d, 0xffffffff
cmp rax, r12
cmovb r12, rax
mov r13, qword [rdx + 0x20]
xorps xmm6, xmm6
nop word cs:[rax + rax]
Function at 0x1400f2e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r14, r9
mov r12, r8
mov rdi, rdx
mov rbp, rcx
mov rbx, qword [rsp + 0x148]
movzx eax, byte [rsp + 0x140]
mov byte [rsp + 0x77], al
mov eax, 0x2600
mov r15, r8
nop dword [rax + rax]

Function at 0x1400f9850
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f989a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f989a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f989a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f989a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f989a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f989c
xor al, al
add rsp, 0x28
ret
Function at 0x1400ffa10
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r15, r8
inc r15
sete bpl
je 0x1400ffc9e
js 0x1400ffcb6
mov ebx, r9d
mov rdi, r8
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x14016b2a0]
mov rcx, qword [0x14016b208]
test rcx, rcx
jne 0x1400ffa6c
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400ffc91
mov rcx, rax
mov qword [0x14016b208], rax
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400ffc91
mov r14, rax
mov rcx, rax
mov rdx, r12
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, 0x10
jae 0x1400ffac8
test rdi, rdi
je 0x1400ffb7f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r12 + rax], 0
je 0x1400ffba0
inc rax
cmp rdi, rax
jne 0x1400ffab0
jmp 0x1400ffb7f
lea rax, [r12 + 7]
and rax, 0xfffffffffffffff8
sub rax, r12
je 0x1400ffb0e
cmp rax, rdi
cmovae rax, rdi
test rax, rax
je 0x1400ffb0e
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r12 + rcx], 0
je 0x1400ffba0
inc rcx
cmp rax, rcx
jne 0x1400ffaf0
lea rcx, [rdi - 0x10]
cmp rax, rcx
jbe 0x1400ffb14
jmp 0x1400ffb5e
lea rcx, [rdi - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x140102580]
movabs rdx, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r12 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1400ffb5e
add rax, 0x10
cmp rax, rcx
jbe 0x1400ffb30
cmp rax, rdi
je 0x1400ffb7f
nop word cs:[rax + rax]
cmp byte [r12 + rax], 0
je 0x1400ffba0
inc rax
cmp rdi, rax
jne 0x1400ffb70
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
call fcn.140006460
mov r14, rax
mov rdi, rdx
jmp 0x1400ffbb3
movabs rax, 0x8000000000000000
cmp r15, rax
jne 0x1400ffc59
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, r14
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400ffc18
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [r14], 0
test rdi, rdi
jne 0x1400ffc37
jmp 0x1400ffc49
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [r14], 0
test rdi, rdi
je 0x1400ffc49
mov rcx, qword [0x14016b208]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test bpl, bpl
jne 0x1400ffc49
mov rcx, qword [0x14016b208]
xor edx, edx
mov r8, r14
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov ecx, 1
mov rdx, r15
call fcn.1400f9ca0
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_alloc_src_ffic_str.rs
mov edx, 0x2b
call fcn.1400fa150
call fcn.1400061d0
int3
Function at 0x140001000
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x30]
call fcn.140001060
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x258
ret

Function at 0x140001b88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bd4
xor al, al
add rsp, 0x28
ret
Function at 0x180001cb0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x180013020]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
call fcn.1800029b0
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x180001d0f
or rax, 0xffffffffffffffff
jmp 0x180001d5c
lea rdx, str.lsass.exe
lea rcx, [rsp + 0x4c]
call fcn.1800052e0
lea rdx, [rsp + 0x20]
mov rcx, rdi
test eax, eax
cmove ebx, dword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180001d0f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or rcx, 0xffffffffffffffff
test rax, rax
cmove rax, rcx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180002c10
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret

Function at 0x180001d80
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180013020]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180001dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001e11
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x180001db8
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x180001db8
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180001e21
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180002c10
add rsp, 0x50
pop rbx
ret
Function at 0x1800022d4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 0xa2a1de0
je 0x1800022f1
cmp dword [rcx], 0x56a2b5f0
jne 0x1800022fa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
add rsp, 0x28
ret

Function at 0x180002384
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
mov ebx, dword [rsp + 0x90]
lea rdi, [r11 - 0x18]
test rax, rax
mov rsi, r9
mov rbp, r8
cmovne rdi, rax
mov r14, rcx
mov qword [r11 - 0x38], rdi
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x48], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x1800024ae
and qword [rsp + 0x98], 0
cmp dword [0x1800142f8], 0
mov rax, qword [0x1800142f0]
jne 0x18000243d
test rax, rax
jne 0x180002433
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800142f0], rax
mov dword [0x1800142f8], 1
test rax, rax
je 0x1800024a3
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x98]
shr ebx, 2
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
and ebx, 1
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, r14
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1800024ae
test rdi, rdi
je 0x1800024ae
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rdi], eax
jmp 0x1800024ae
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x98]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x1800024fc
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
or qword [rdx], 0xffffffffffffffff
mov dword [rax - 0x20], r8d
mov rbx, rdx
mov edx, 3
mov dword [rax - 0x28], r8d
lea r9d, [rdx - 2]
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18000253c
xor eax, eax
jmp 0x180002564
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000255f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x18000253c
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x18000256c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
and dword [rsp + 0x60], ebx
mov rbp, rcx
test r8d, r8d
je 0x1800025ca
mov r14d, 0x2000
mov r8d, edi
mov edx, ebx
lea r9, [rsp + 0x60]
sub r8d, ebx
mov rcx, rbp
cmp r8d, r14d
cmova r8d, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800025e2
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jb 0x180002598
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1800025cf
Function at 0x140008010
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140008055
xor al, al
jmp 0x1400080a2
cmp word [rbx], 0
je 0x14000806d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x140008060
cmp word [rsp + 0x30], 0
je 0x14000809b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x1400080c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x140008080
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c1e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001046c
int3

Function at 0x140008290
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14000c180
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dac8]
lea rsi, [0x14002fb20]
mov rdi, rcx
test r11d, r11d
jne 0x140008309
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.140008400
test al, al
je 0x1400083e9
lea rcx, [rsp + 0x20]
call fcn.1400148b0
movsxd r11, dword [0x14002dac8]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dac8], r11d
xor r9d, r9d
test r11d, r11d
jle 0x140008344
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140008334
add rax, 2
test ecx, ecx
jne 0x140008320
test edx, edx
je 0x140008367
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x140008314
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140008350
cmp rax, 2
jne 0x14000836b
cmp word [rdi + 2], 0x3a
jne 0x14000836b
mov al, 1
jmp 0x1400083c8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140008396
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400083bd
mov bl, 1
cmp dword [0x14002dac8], 0x400
jge 0x1400083bd
mov rcx, rdi
call fcn.1400148b0
movsxd rdx, dword [0x14002dac8]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dac8], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c1e0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.140008800
int3
Function at 0x1400088a0
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x70
mov qword [rax + 8], rsi
xor r9d, r9d
xor esi, esi
mov edx, 0x80000000
mov qword [rax - 0x48], rsi
mov dword [rax - 0x50], 0x80
mov dword [rax - 0x58], 3
lea r8d, [rsi + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov ebx, 0xffffffff
cmp rax, 0xffffffffffffffff
jne 0x140008905
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
jmp 0x1400089b9
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x14000893b
mov qword [rsp + 0x60], 0xffffffffffffffff
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
jmp 0x1400089b9
xor r9d, r9d
mov eax, eax
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
test rax, rax
jne 0x14000897e
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x50]
jmp 0x1400089b9
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x1400089b9
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
mov rsi, qword [rsp + 0x80]
je 0x1400089cd
xor eax, eax
jmp 0x140008aad
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140008a84
mov r8, rbp
mov r9d, eax
nop
movzx eax, byte [r8]
lea r8, [r8 + 1]
xor ebx, eax
mov eax, ebx
and al, 1
neg al
sbb ecx, ecx
shr ebx, 1
and ecx, 0xedb88320
xor ecx, ebx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb ebx, ebx
shr ecx, 1
and ebx, 0xedb88320
xor ebx, ecx
sub r9, 1
jne 0x1400089e0
not ebx
mov eax, 1
test ebx, ebx
mov rcx, rbp
cmove ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400096d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400097cb
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400097d3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000980a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400097e0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140009835
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000985b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140009840
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x14000cae8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000cb32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000cb32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000cb32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000cb32
cmp dword [rcx + 0x84], 0xe
jbe 0x14000cb32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000cb34
xor al, al
add rsp, 0x28
ret

Function at 0x140010460
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400102cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400102cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400102cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400102cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400102cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400102cb
cmp dword [rcx + 0xf8], 0
je 0x1400102cb
mov ecx, ebx
call fcn.14001037c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010158
nop
cmp dword [rbp + 0x20], 0
je 0x140010319
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010324
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001025c