joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x1403f2f18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x140062fc9
mov rax, qword [rsp + 0x40]
add rax, 0x5590
mov rcx, rax
call fcn.1400660a0
mov qword [rsp + 0x28], rax
jmp 0x140062f20
mov rax, qword [rsp + 0x40]
add rax, 0x5590
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140066040
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140062fc9
cmp dword [rsp + 0x80], 0
je 0x140062f51
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x14], ecx
je 0x140062f51
mov dword [rsp + 0x38], 0
jmp 0x140062f59
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140062faf
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x14], 0
je 0x140062faf
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x48]
call fcn.1400580b0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140062faf
mov rcx, qword [rsp + 0x50]
call fcn.1400310e0
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
jne 0x140062faf
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140062fc4
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x14], 0
jmp 0x140062efc
mov dword [rsp + 0x24], 0
jmp 0x140062fdd
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x3f80]
cmp dword [rsp + 0x24], eax
jge 0x1400630cc
mov rax, qword [rsp + 0x40]
add rax, 0x3f80
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.140065b90
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x80], 0
je 0x14006307d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x420], 0
je 0x14006304d
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x420]
call fcn.1400310e0
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x14006307d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x428], 0
je 0x140063073
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x428]
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x14006307d
mov dword [rsp + 0x3c], 0
jmp 0x140063085
mov dword [rsp + 0x3c], 1
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400630c7
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x430]
mov dword [rsp + 0x58], eax
movzx r8d, byte [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140059610
nop
movzx eax, byte [rsp + 0x88]
jmp 0x140062fd3
add rsp, 0x78
ret
Function at 0x140088760
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140088786
mov dword [rsp + 0x20], 1
jmp 0x14008878e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140096350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1403f2f18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
jne 0x140096386
jmp 0x1400965a1
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
and eax, 0xc0
test eax, eax
jne 0x1400963a1
mov byte [rsp + 0x20], 1
jmp 0x1400963a6
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400963cd
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x50]
movss dword [rsp + 0x38], xmm0
jmp 0x1400963d6
xorps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x88]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x18]
comiss xmm0, dword [rsp + 0x90]
jbe 0x140096416
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x14009641e
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.140065e90
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
jmp 0x14009646b
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140096572
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x140096572
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call fcn.140065ef0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0x20
test eax, eax
je 0x1400964be
jmp 0x140096572
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0xc0
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
and ecx, 0xc0
cmp eax, ecx
je 0x1400964e5
jmp 0x140096572
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x18]
mov rax, qword [rsp + 0x50]
subss xmm0, dword [rax + 0x395c]
movss dword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x18]
mov rax, qword [rsp + 0x40]
addss xmm0, dword [rax + 0x1c]
mov rax, qword [rsp + 0x50]
addss xmm0, dword [rax + 0x395c]
movss dword [rsp + 0x4c], xmm0
cmp dword [rsp + 0x30], 0
jge 0x140096554
movss xmm0, dword [rsp + 0x90]
comiss xmm0, dword [rsp + 0x48]
ja 0x14009656b
cmp dword [rsp + 0x30], 0
jle 0x14009656d
movss xmm0, dword [rsp + 0x4c]
comiss xmm0, dword [rsp + 0x90]
jbe 0x14009656d
jmp 0x140096572
jmp 0x14009645b
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x1400965a1
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov r8d, eax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140096320
nop
add rsp, 0x78
ret
Function at 0x140099ff0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x14009ea20]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14009a02a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14009a02f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14009a078
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009e920]
cmp byte [rcx + rax], 0
je 0x14009a078
dec r8
sub rdx, 1
jne 0x14009a05e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14009af50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009af9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009af9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009af9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009af9a
cmp dword [rcx + 0x84], 0xe
jbe 0x14009af9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009af9c
xor al, al
add rsp, 0x28
ret
Function at 0xbeef1630
Capabilities:
Enumerate process modules
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, edx
mov rdi, rcx
mov dword [rax + 0x20], 0
lea r9, [rax + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov eax, dword [rsp + 0x88]
test eax, eax
je 0xbeef1846
mov r8d, eax
xor edx, edx
mov rcx, qword [0xbef01d50]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0xbeef1846
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x88]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
xorps xmm2, xmm2
xorps xmm1, xmm1
lea r9, [0xbef011a0]
mov rcx, r9
mov eax, 0x10
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
paddb xmm2, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
paddb xmm1, xmm0
lea rcx, [rcx + 0x20]
sub rax, 1
jne 0xbeef16d0
paddb xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
paddb xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
paddb xmm1, xmm0
movd r14d, xmm1
xor cl, cl
xor dl, dl
mov eax, 0x200
mov r8d, 8
nop word [rax + rax]
add cl, byte [rax + r9]
add dl, byte [rax + r9 + 1]
lea rax, [rax + 2]
sub r8, 1
jne 0xbeef1740
add r14b, dl
add r14b, cl
mov byte [rsp + 0x80], r14b
mov ecx, dword [rsp + 0x28]
shr ecx, 3
mov eax, dword [rsp + 0x88]
shr eax, 3
cmp eax, ecx
cmovae eax, ecx
mov dword [rsp + 0x88], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r15, rax
mov qword [0xbef01760], rax
xor r8d, r8d
mov dword [rsp + 0x20], r8d
xor r11d, r11d
mov dword [rsp + 0x24], r11d
mov ecx, dword [rsp + 0x88]
cmp r11d, ecx
jae 0xbeef1834
cmp r8d, ebx
jae 0xbeef1834
movzx eax, r14b
add eax, r11d
xor edx, edx
div ecx
mov r10, qword [rsi + rdx*8]
test r10, r10
je 0xbeef182c
cmp r10, r15
je 0xbeef182c
movsxd r9, dword [r10 + 0x3c]
xor eax, eax
mov dword [rsp + 0x2c], eax
cmp eax, dword [r9 + r10 + 0x1c]
jae 0xbeef1802
cmp r8d, ebx
jae 0xbeef1802
mov ecx, dword [r9 + r10 + 0x2c]
add ecx, eax
movzx edx, byte [rcx + r10]
mov ecx, r8d
mov byte [rcx + rdi], dl
inc eax
inc r8d
mov dword [rsp + 0x20], r8d
jmp 0xbeef17d4
jmp 0xbeef182c
inc r11d
jmp 0xbeef179b
mov r8, rsi
xor edx, edx
mov rcx, qword [0xbef01d50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0xbeef8480
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x350]
sub rsp, 0x450
xor ebx, ebx
lea rax, [rbp + 0x370]
xor r8d, r8d
mov qword [rbp + 0x368], rbx
lea rdx, str.SoftwareValveSteamActiveProcess
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbeef8690
mov rcx, qword [rbp + 0x370]
lea rax, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea rdx, [0xbeefe4b8]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x360], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xbeef8679
cmp qword [rsp + 0x30], rbx
je 0xbeef8679
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x4000000
mov qword [rsp + 0x40], rax
lea r8d, [rbx + 0x18]
mov rax, qword [0xbef017a8]
lea rdx, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rbx + 0x58]
call rax
test eax, eax
jne 0xbeef8679
movzx eax, word [rsp + 0x38]
cmp eax, 0x14
jbe 0xbeef8679
mov rdx, qword [rsp + 0x40]
mov ecx, eax
shr rcx, 1
cmp word [rdx + rcx*2 - 0x14], 0x5c
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 0x12]
mov r8d, 0xffdf
sub ax, 0x53
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 0x10]
sub ax, 0x54
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 0xe]
sub ax, 0x45
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 0xc]
sub ax, 0x41
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 0xa]
sub ax, 0x4d
test r8w, ax
jne 0xbeef8679
cmp word [rdx + rcx*2 - 8], 0x2e
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 6]
sub ax, 0x45
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 4]
sub ax, 0x58
test r8w, ax
jne 0xbeef8679
movzx eax, word [rdx + rcx*2 - 2]
sub ax, 0x45
test r8w, ax
jne 0xbeef8679
mov rcx, qword [rbp + 0x370]
lea rax, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea rdx, str.ActiveUser
lea rax, [rbp + 0x368]
mov dword [rbp + 0x360], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xbeef8683
mov rax, qword [rbp + 0x368]
test rax, rax
je 0xbeef8683
movabs rcx, 0x110000100000000
or rax, rcx
mov qword [rbp + 0x368], rax
jmp 0xbeef8683
mov dword [rbp + 0x360], 4
mov rcx, qword [rbp + 0x370]
call qword [0xbef01d68]
mov rax, qword [rbp + 0x368]
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rbp
ret
Function at 0xbeef9e40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x40
mov rbx, qword [0xbef040d0]
xor ebp, ebp
mov esi, edx
test rbx, rbx
jne 0xbeef9f12
mov rcx, qword [0xbef01d50]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0x58], rdi
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0xbeef9f01
mov edx, 0x200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9d, eax
mov edx, ebp
mov eax, 0x5c
lea r10, [0xbeefe710]
mov word [rdi + r9*2], ax
lea r8d, [r9 + 1]
lea ecx, [r8 + rdx]
cmp ecx, 0x200
jae 0xbeef9ed4
mov eax, edx
inc edx
movzx eax, word [r10 + rax*2]
mov word [rdi + rcx*2], ax
cmp word [r10 + rdx*2], bx
jne 0xbeef9eb4
lea eax, [r9 + 1]
xor r8d, r8d
add eax, edx
mov rcx, rdi
xor edx, edx
mov word [rdi + rax*2], bp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [0xbef01d50]
mov r8, rdi
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x58]
mov qword [0xbef040d0], rbx
test rbx, rbx
je 0xbeef9f59
mov rax, qword [0xbef040d8]
test rax, rax
jne 0xbeef9f35
lea rdx, str.WSCSetApplicationCategory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef040d8], rax
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
lea rcx, [0xbef020b0]
mov edx, esi
mov dword [rsp + 0x20], ebp
call rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0xbeefa090
Capabilities:
Read file via mapping

Disassembly:
push rbx
push r15
sub rsp, 0x48
mov rcx, qword [0xbef016c8]
xor r15d, r15d
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
lea r8d, [r15 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0xbeefa232
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r15 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rbx
mov rdi, rax
call qword [0xbef01d68]
test rdi, rdi
je 0xbeefa223
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], rsi
movzx esi, word [rcx + 0x14]
add rsi, rcx
mov ecx, dword [rsi + 0x28]
cmp ecx, dword [rsi + 0x20]
mov edx, dword [rsi + 0x24]
cmovae ecx, dword [rsi + 0x20]
add rdx, qword [0xbef01760]
mov ebx, ecx
mov r8d, ecx
mov ecx, dword [rsi + 0x2c]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp eax, ebx
setae bpl
jae 0xbeefa1ff
sub ebx, eax
mov qword [rsp + 0x30], r14
mov r14d, ebx
lea rcx, [rsp + 0x60]
mov ebx, eax
lea r9d, [r15 + 0x40]
mov eax, dword [rsi + 0x24]
lea r8, [rsp + 0x68]
add rax, rbx
mov qword [rsp + 0x20], rcx
add rax, qword [0xbef01760]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea rcx, [r15 - 1]
mov rax, qword [0xbef016c0]
mov qword [rsp + 0x68], r14
call rax
test eax, eax
jne 0xbeefa1fa
mov r8d, dword [rsi + 0x2c]
lea rcx, [r15 - 1]
mov edx, dword [rsi + 0x24]
add r8, rbx
mov rax, qword [0xbef01698]
add rdx, rbx
add rdx, qword [0xbef01760]
add r8, rdi
mov r9d, r14d
mov qword [rsp + 0x20], r15
call rax
mov r9d, dword [rsp + 0x60]
lea r8, [rsp + 0x68]
test eax, eax
mov qword [rsp + 0x68], r14
mov eax, dword [rsi + 0x24]
lea rdx, [rsp + 0x70]
sete bpl
lea rcx, [r15 - 1]
add rax, rbx
add rax, qword [0xbef01760]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [0xbef016c0]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x40]
movzx eax, bpl
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x38]
add rsp, 0x48
pop r15
pop rbx
ret
mov rdi, qword [rsp + 0x38]
mov al, 1
add rsp, 0x48
pop r15
pop rbx
ret
mov al, 1
add rsp, 0x48
pop r15
pop rbx
ret
Function at 0xbeefb250
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
lea rsi, [0xbef01e10]
mov ebx, ebp
movabs r14, 0x400000021
lea r15d, [rbp + 0x5c]
mov eax, ebx
lea rdi, [rsi + rax*2]
movzx eax, word [rsi + rax*2]
test ax, ax
je 0xbeefb31e
test ebx, ebx
je 0xbeefb317
cmp ax, r15w
jne 0xbeefb317
lea eax, [rbx - 1]
movzx eax, word [rsi + rax*2]
sub ax, 0x3a
cmp ax, 0x22
ja 0xbeefb2b5
bt r14, rax
jb 0xbeefb317
lea eax, [rbx + 1]
movzx eax, word [rsi + rax*2]
cmp ax, 0x3f
je 0xbeefb317
cmp ax, 0x3a
je 0xbeefb317
lea r8, [rsp + 0x20]
mov word [rdi], bp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0xbeefb304
mov eax, dword [rsp + 0x20]
test al, 0x10
jne 0xbeefb308
test al, 1
je 0xbeefb2f9
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0xbeefb308
mov dword [rsp + 0x20], ebp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rdi], r15w
inc ebx
jmp 0xbeefb281
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret

Function at 0xbeefb340
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0xbef01d98]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
test rax, rax
jne 0xbeefb37f
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0xbef01d98], rax
mov r10, qword [0xbef01dc8]
test r10, r10
jne 0xbeefb3a5
lea rdx, str.RtlDecompressBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0xbef01dc8], rax
lea rax, [rsp + 0x30]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x20], esi
mov cx, 2
call r10
mov ecx, dword [rsp + 0x30]
xor edx, edx
mov rbx, qword [rsp + 0x50]
test eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmovne ecx, edx
mov eax, ecx
add rsp, 0x40
pop rdi
ret
Function at 0xbeefb640
Capabilities:
Get common file path

Disassembly:
push r14
push r15
sub rsp, 0x268
cmp qword [0xbef01df8], 0
mov r14d, edx
mov r15, rcx
jne 0xbeefb87c
lea rdx, [rsp + 0x40]
mov ecx, 0xfc
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, eax
test eax, eax
jne 0xbeefb684
xor eax, eax
add rsp, 0x268
pop r15
pop r14
ret
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x250], r12
rdtsc
shl rdx, 0x20
lea rbx, [rsp + 0x40]
or rax, rdx
lea rbx, [rbx + r8*2]
mov rcx, rax
mov qword [rsp + 0x290], rax
shr rcx, 0x20
mov r8d, 0x24
add ecx, eax
mov rdx, rbx
call qword [0xbef01d38]
xor r12d, r12d
lea rdx, str..tmp
mov rcx, rbx
mov qword [rsp + 0x290], r12
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 7]
mov dword [rsp + 0x28], r12d
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov edx, PostQuitMessage
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xbeefb86c
mov qword [rsp + 0x288], rbp
lea r8d, [r12 + 4]
lea ebp, [r14 + r14]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
mov qword [rsp + 0x258], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0xbeefb7b3
mov qword [rsp + 0x28], r12
lea edx, [r12 + 6]
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov qword [rsp + 0x260], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, rdi
mov rsi, rax
call qword [0xbef01d68]
test rsi, rsi
je 0xbeefb7ab
mov r9d, ebp
mov r8, rsi
mov edx, r14d
mov rcx, r15
call fcn.beefb340
mov ecx, eax
mov qword [rsp + 0x290], rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x258]
mov rbp, qword [rsp + 0x288]
cmp qword [rsp + 0x290], r12
je 0xbeefb849
mov r9d, 8
lea r8, [rsp + 0x290]
mov rcx, rbx
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [0xbef01d68]
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0xbef01df8], rax
test rax, rax
je 0xbeefb817
xor edx, edx
mov rcx, rax
call fcn.beefb3f0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rcx, [rsp + 0x40]
mov edx, PostQuitMessage
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xbeefb86c
mov r9d, 1
lea r8, [0xbef01640]
mov rcx, rbx
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [0xbef01d68]
mov rbx, qword [rsp + 0x280]
mov r12, qword [rsp + 0x250]
mov rax, qword [0xbef01df8]
add rsp, 0x268
pop r15
pop r14
ret
Function at 0xbeefb9f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0xbeefba2c
mov rcx, qword [0xbef01d50]
lea edx, [rbx + 8]
mov r8d, 0x448
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0xbeefbab9
movups xmm0, xmmword [rdi]
lea rax, [rbx + 0x48]
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
movups xmmword [rbx + 0x20], xmm0
lea rax, [0xbeefbb30]
xor r9d, r9d
movsd xmm1, qword [rdi + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
movsd qword [rbx + 0x30], xmm1
mov rcx, qword [rdi + 8]
lea r8d, [r9 + 1]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0xbeefbab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0xbeefbab5
mov rcx, qword [0xbef01d50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
or byte [rdi + 0x14], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180003af0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180003b31
jmp 0x180003b77
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180003b57
jmp 0x180003b77
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x180003b69
jmp 0x180003b77
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret