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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4024e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4024db
test r12, r12
je 0x4024db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024c0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402710
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402720
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402730
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402775
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40276c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402777
add rax, 0x28
cmp rax, r9
jne 0x402758
xor eax, eax
ret

Function at 0x402820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402899
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402899
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402896
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40288d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402899
add r8, 0x28
cmp r8, r9
jne 0x402878
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402980
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4029ef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4029ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4029e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029f8
add rax, 0x28
cmp rax, r9
jne 0x4029d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402a88
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a88
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402a88
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a88
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402a7c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402a90
add rdx, 0x28
cmp rdx, r10
jne 0x402a68
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402aa0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402aae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402a85
test r8d, r8d
jg 0x402a98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x402c50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408968]
test rbx, rbx
je 0x402ca4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x402c9b
test rbp, rbp
je 0x402c9b
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402c80
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x180731db9
Capabilities:
Encode data using xor

Disassembly:
lea r8, [0x18074cbe0]
lea rsp, [rsp + 0x10]
mov esi, 0xbb84660f
movzx esi, byte [rax]
push 0x513f033f
xor esi, r11d
and esi, 0xff
add byte [rsp + 3], 0x9a
mov esi, dword [r8 + rsi*4]
shr r11d, 8
shr word [rsp + 6], 0xe2
xor r11d, esi
inc rax
shr qword [rsp], 0xe4
xor r11d, 0x5787cdb0
dec rdx
lea rsp, [rsp + 8]
jne 0x180731dc5
jmp 0x18074a167
call fcn.18073d3ab
neg di
rol di, 1
jmp 0x18074b414
dec r11d
shl r11d, 0xa5
xor bp, di
add rdi, rsp
mov r11d, dword [rdi]
push 0xffffffffe22ff7a7
neg byte [rsp + 2]
sub rbx, 4
not dword [rsp]
call fcn.180711f35
mov dword [rdi], esi
call fcn.180723c33
push 0x39932e29
lea rsp, [rsp + 8]
jmp fcn.18072f66c

Function at 0x18073cc6a
Capabilities:
Encode data using xor

Disassembly:
shr dl, 0xe1
ror r9b, 1
inc r9b
rol r9b, 1
xor dl, 0x25
add dl, 0x34
xor r9b, 0x30
inc r9b
xor bpl, r9b
mov qword [rsp + rdx - 0x7519849a], rdi
push rbx
push rdx
lea rdx, [rdx + rdx*2 + 0x2c2ae5b5]
mov qword [rsp], rbp
mov rbp, r8
inc edx
mov ebx, r9d
jle 0x180748253
mov edx, ebx
xor ecx, ecx
push 0xffffffff99156710
cmp ebx, 4
lea rsp, [rsp + 8]
jbe 0x18074827f
mov eax, 0xa997673d
movzx ecx, al
lea edx, [rcx - 0x39]
ror al, 0xe7
lea ecx, [rbx + rcx*2 - 0x7e]
mov eax, 0xbd0e0236
shl ecx, 3
shl al, 0x84
bswap eax
adc ax, 0xff2c
sal edx, 3
xor eax, eax
or rax, rbp
add rax, rdx
call fcn.1807114ae

Function at 0x180743c74
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x6f2d0489
movzx ebx, byte [rbx + r9 - 0x6f2d0489]
push 0x7a316085
inc word [rsp + 2]
push 0x4907861f
xor ebx, eax
and ebx, 0xff
mov ebx, dword [rdx + rbx*4]
shr eax, 8
xor eax, ebx
inc r9
xor eax, 0xe4010fa2
dec rdi
push 0xfffffffffa131733
lea rsp, [rsp + 0x18]
jne 0x18072787f
pop rbx
not eax
mov dword [rbp + riz], eax
jmp 0x1807376fa
call fcn.180716bc6
lea rsp, [rsp + 0x28]
jmp 0x18072dd3a
movzx edi, byte [r9]
mov qword [rsp], 0x125612
add r9, 1
push 0x2e0f0131
add byte [rsp + 3], 0xa8
xor dil, bl
inc word [rsp + 5]
mov ecx, 0x6facdabe
ror dil, 1
sal cx, 0x25
ror cl, 0xc1
jb 0x1807278ac
not dil
dec dil
not byte [rsp + rcx - 0x6fac5759]
push rcx
neg dil
sub cl, byte [rsp + rcx - 0x6fac574c]
or qword [rsp + rcx - 0x6fac5757], rcx
inc byte [rsp + rcx - 0x6fac5756]
xor bl, dil
push rcx
dec cx
xadd cl, ch
lea rdi, [rsp + rdi + 0x20]
movzx cx, byte [rdi + rcx - 0x6fac5fb6]
sbb r10, 2
push 0x39878c8f
mov word [r10], cx
jmp 0x18073c472
Function at 0x1400113c0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400194e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400114bf
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a850
xor al, al
jmp 0x14001a8d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a863
xor al, al
jmp 0x14001a8d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001a88d
xor al, al
jmp 0x14001a8d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a8a1
xor al, al
jmp 0x14001a8d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a8b3
xor al, al
jmp 0x14001a8d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a8cf
xor al, al
jmp 0x14001a8d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
lea rax, [rbp + 0x728]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400032f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001099
jmp 0x14000104b
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x720]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rbp + 0x728]
and qword [rsp + 0x20], 0
mov dword [rbp + 0x720], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rbp + 0x728]
test eax, eax
je 0x140001040
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, [0x1400032f0]
mov r8d, 0xf013f
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add rsp, 0x810
pop rbp
ret
Function at 0x1400014d0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov ebx, 1
xor r14d, r14d
mov dword [rbp + 0x1a8], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x9c40
xor edx, edx
mov rcx, rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rsp + 0x30], r14d
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x13880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbp + 0x1a0], r14d
lea r8, [rsp + 0x30]
mov edx, edi
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140001627
mov eax, dword [rsp + 0x30]
xor edi, edi
shr eax, 2
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140001627
mov r8d, dword [r15 + rdi*4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000161b
lea r9, [rbp + 0x1a0]
mov r8d, 0x13880
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001612
mov eax, dword [rbp + 0x1a0]
xor ebx, ebx
shr eax, 3
mov dword [rbp + 0x1a0], eax
test eax, eax
je 0x14000160c
mov rdx, qword [r12 + rbx*8]
lea r8, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9d, 0x200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001602
movzx edx, word [rbp - 0x80]
mov ecx, 0x7268
movzx eax, dx
sub ax, cx
cmp ax, 0xf
ja 0x140001602
mov ecx, 0x8801
bt ecx, eax
jb 0x14000166f
inc ebx
cmp ebx, dword [rbp + 0x1a0]
jb 0x1400015c1
mov ebx, dword [rbp + 0x1a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140001572
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x198]
mov dword [rax], r14d
mov eax, ebx
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x198]
cmp r14d, dword [rax]
jae 0x1400016b4
mov eax, dword [r15 + rdi*4]
mov r9d, 0x7277
mov r8, qword [rbp + 0x190]
mov ecx, r14d
add rcx, rcx
mov dword [r8 + rcx*8], eax
xor eax, eax
cmp dx, r9w
mov word [r8 + rcx*8 + 4], dx
cmove rax, qword [rbp - 0x7e]
inc r14d
mov qword [r8 + rcx*8 + 8], rax
jmp 0x14000160c
xor ebx, ebx
mov dword [rbp + 0x1a8], ebx
jmp 0x140001612
Function at 0x1400017e4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14d, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x3e80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], 0x3e8
mov rcx, rax
mov rbp, rax
call fcn.1400014d0
test eax, eax
je 0x14000187d
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x14000187d
mov rbx, rbp
mov edi, ecx
mov eax, 0x7273
cmp word [rbx + 4], ax
jne 0x140001873
cmp dword [rbx], r14d
je 0x140001873
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001873
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x10
sub rdi, 1
jne 0x140001839
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x14000193c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rdx
mov edi, ebx
mov rbp, rcx
mov rsi, rdx
mov eax, edi
lea r9, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x20], rbx
mov rcx, rbp
lea rdx, [r14 + rax*2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400019a4
cmp dword [rsp + 0x60], 2
jne 0x1400019a4
cmp word [rsi], bx
je 0x14000199f
inc edi
add rsi, 2
cmp edi, 0x105
jb 0x140001960
jmp 0x1400019a4
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001b4c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
xor esi, esi
mov word [rbp + 0x73], 0x100
lea rax, [rbp + 0x77]
mov dword [rbp + 0x6f], esi
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x48], esi
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dl, 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001c67
xor eax, eax
lea rdi, [rbp + 0xf]
lea ecx, [rsi + 0x30]
xor r8d, r8d
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x77]
lea ecx, [rsi + 1]
lea r9, [rbp + 0x7f]
mov qword [rbp + 0x37], rax
lea rdx, [rbp + 0xf]
mov dword [rbp + 0xf], 0x1f01ff
mov qword [rbp + 0x13], 2
mov dword [rbp + 0x2b], esi
mov dword [rbp + 0x2f], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140001c67
lea edx, [rsi + 0x28]
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140001c67
lea edx, [rsi + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140001c67
mov r8, qword [rbp + 0x7f]
lea edx, [rsi + 1]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140001c67
lea rax, [rbp - 9]
mov dword [rbp - 9], 0x18
mov qword [rsp + 0x38], rax
lea edx, [rsi + 3]
mov eax, 0x400
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov r9d, 0xff
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov qword [rbp - 1], rdi
mov dword [rbp + 7], esi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x140001c6b
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001f24
Capabilities:
Allocate or change rwx memory

Disassembly:
test rcx, rcx
je 0x140002111
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rdi, rcx
lea rdx, [0x1400033c0]
lea rcx, [rsp + 0x60]
xor ebp, ebp
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
test rax, rax
je 0x1400020f7
xor eax, eax
lea esi, [rbp + 0x18]
mov ecx, esi
lea rdi, [rsp + 0x40]
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, esi
lea r8, [rsp + 0x40]
mov rcx, rax
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x1400020ee
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], ebp
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400020ee
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebp
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r15, rax
test rax, rax
je 0x1400020e5
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x1400020dc
mov rcx, qword [rsp + 0x40]
movzx esi, bp
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
cmp bp, word [rdi + 6]
jae 0x1400020dc
movzx ecx, word [rdi + 0x14]
movzx eax, si
add rcx, rdi
lea rdx, [rax*4 + 3]
add rdx, rax
lea rbx, [rcx + rdx*8]
mov rcx, rbx
mov qword [rsp + 0x2b8], rbx
lea rdx, [0x1400033ec]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140002088
inc si
cmp si, word [rdi + 6]
jb 0x140002048
jmp 0x1400020dc
mov ebp, dword [rbx + 0xc]
lea r9, [rsp + 0x2b0]
add rbp, qword [rsp + 0x40]
mov r8d, 0x40
mov ebx, dword [rbx + 8]
mov rcx, rbp
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x2b8]
lea r9, [rsp + 0x2b0]
mov rdi, rbp
mov ecx, ebx
mov edx, ebx
mov esi, dword [rax + 0xc]
add rsi, r13
rep movsb byte [rdi], byte [rsi]
mov r8d, dword [rsp + 0x2b0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002a88
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, str..pipewzcontrol_redirect64
and dword [rax - 0x20], 0
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x28], 3
xor r8d, r8d
mov edx, 0xc0000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002b1d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x140002b14
test edi, edi
je 0x140002b14
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
cmpsd dword [rsi], dword [rdi]
or ebp, ebp
jg 0x140020a05
mov bh, 0x3e
invalid
cmp eax, 0xf02b7941
push 0xffffffffffffffa4
cmp bh, cl
invalid
mov ah, 7
sbb eax, 0x13bf3782
adc ebx, esp
push 0xffffffffc932e649
outsd dx, dword [rsi]
pop rsi
pop rbp
call rcx
insb byte [rdi], dx
pop rbp
cmc
fdiv qword [rbx + riz]
movabs byte [0x90f9d45574be9242], al
pop rax
jne 0x140020a5d
adc dword [edx + 0x469c918f], 0xfffffff1
outsd dx, dword [rsi]
jno 0x1400209db
invalid
and edi, dword [rbx]
add eax, 0x6a20d9ae
out 0xc9, eax
in eax, dx
and al, 0xb3
int3
Function at 0x180001360
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
add rcx, 8
call fcn.1800073d0
add rsi, 0x98
mov qword [rbp - 0x10], rsi
mov rcx, rsi
call fcn.180020ab0
mov qword [rbp - 0x18], rax
mov ecx, 0x2e
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1800013df
mov rsi, qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [rax]
mov ecx, 0x2d
call rsi
test al, 1
je 0x1800013c2
mov rax, qword [rbp - 0x18]
xor byte [rax], 1
mov rcx, qword [rbp - 0x10]
call fcn.180020a20
mov ecx, 0x2e
mov rsi, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rsi
test al, 1
je 0x1800013b0
jmp 0x1800013df
mov rcx, qword [rbp - 0x10]
call fcn.180020a60
nop
add rsp, 0x48
pop rsi
pop rbp
ret

Function at 0x1800023a0
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x1800023c0
movzx eax, byte [rdx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
movzx r8d, byte [rdx + 1]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdx + 2]
xor rax, r8
imul rax, rcx
movzx r8d, byte [rdx + 3]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdx + 4]
xor rax, r8
imul rax, rcx
movzx r8d, byte [rdx + 5]
xor r8, rax
imul r8, rcx
movzx r9d, byte [rdx + 6]
xor r9, r8
imul r9, rcx
movzx eax, byte [rdx + 7]
xor rax, r9
imul rax, rcx
ret

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

Disassembly:
movabs r10, 0xcbf29ce484222325
test rdx, rdx
je 0x18000282b
movabs r8, 0x100000001b3
mov r9d, edx
and r9d, 3
cmp rdx, 4
jae 0x18000282f
xor r11d, r11d
jmp 0x18000287c
mov rax, r10
ret
and rdx, 0xfffffffffffffffc
xor r11d, r11d
nop word cs:[rax + rax]
movzx eax, byte [rcx + r11]
xor rax, r10
imul rax, r8
movzx r10d, byte [rcx + r11 + 1]
xor r10, rax
imul r10, r8
movzx eax, byte [rcx + r11 + 2]
xor rax, r10
imul rax, r8
movzx r10d, byte [rcx + r11 + 3]
xor r10, rax
imul r10, r8
add r11, 4
cmp rdx, r11
jne 0x180002840
mov rax, r10
test r9, r9
je 0x1800028a6
add rcx, r11
xor edx, edx
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rax, r10
imul rax, r8
inc rdx
mov r10, rax
cmp r9, rdx
jne 0x180002890
ret