joyce8/EMBER2024-capa huggingface dataset:
Function at 0x320d470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x30
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
test rcx, rcx
je 0x320d58f
mov ecx, 0x38
call fcn.0322fc58
mov rbx, rax
test rax, rax
je 0x320d58f
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
lea ecx, [r12 + 8]
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
call fcn.0322fc58
mov rdi, rax
test rax, rax
je 0x320d504
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
test rax, rax
jne 0x320d50a
mov rcx, rdi
call fcn.0322fc44
mov qword [rbx + 0x10], r12
jmp 0x320d562
mov qword [rsp + 0x28], rbx
lea r8, [0x0320d910]
mov r9, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
mov qword [rbx + 0x10], rdi
xor ecx, ecx
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x18], rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x320d58a
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x320d562
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.0322fc44
mov rcx, rbx
call fcn.0322fc44
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
mov rax, rbx
jmp 0x320d56c
xor eax, eax
jmp 0x320d576

Function at 0x320d630
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x320d656
mov rcx, qword [rcx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x320d9e0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x320d9f0
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret
Function at 0x320f0e0
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r11d, r8d
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x320f0f6
lea eax, [rdx + 1]
ret
test r8d, r8d
je 0x320f241
nop
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jl 0x320f1ed
mov r8d, edx
shr r8, 4
mov eax, r8d
neg eax
shl eax, 4
add edx, eax
nop dword [rax]
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r8, 1
jne 0x320f130
test edx, edx
je 0x320f212
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x320f200
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r11d, r11d
jne 0x320f100
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x3210400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov r14, rcx
mov qword [rsp + 0x50], rbp
xor r13d, r13d
mov qword [rsp + 0x58], rdi
nop word [rax + rax]
mov ebx, dword [r14 + 0x50]
lea r8, [r14 + 0x48]
mov edx, dword [r14 + 0x8c]
sub ebx, edx
mov eax, dword [r14 + 0x94]
sub ebx, eax
jne 0x321045f
test edx, edx
jne 0x321046e
lea r8, [r14 + 0x48]
test eax, eax
jne 0x321046e
mov ebx, esi
jmp 0x3210500
cmp ebx, 0xffffffff
jne 0x321046e
mov ebx, 0xfffffffe
jmp 0x3210500
mov ecx, dword [r14 + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x3210500
mov rcx, qword [r8]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.0322a6d0
mov r8d, dword [r14 + 0x6c]
mov rax, qword [r14 + 0x60]
sub dword [r14 + 0x90], esi
sub dword [r14 + 0x8c], esi
sub dword [r14 + 0x7c], esi
lea rdx, [rax + r8*2]
nop
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r13w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x32104b0
mov rax, qword [r14 + 0x58]
mov r8d, esi
lea rdx, [rax + rsi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r13w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x32104e0
add ebx, esi
mov r15, qword [r14]
mov eax, dword [r15 + 8]
test eax, eax
je 0x32105ca
mov r10d, dword [r14 + 0x8c]
mov ebp, dword [r14 + 0x94]
add rbp, r10
add rbp, qword [r14 + 0x48]
cmp eax, ebx
cmovbe ebx, eax
test ebx, ebx
jne 0x3210532
mov ebx, r13d
jmp 0x3210573
sub eax, ebx
mov dword [r15 + 8], eax
mov rax, qword [r15 + 0x28]
cmp dword [rax + 0x2c], r13d
jne 0x3210555
mov rdx, qword [r15]
mov r8d, ebx
mov ecx, dword [r15 + 0x4c]
call fcn.0320f0e0
mov dword [r15 + 0x4c], eax
mov rdx, qword [r15]
mov rcx, rbp
mov r8d, ebx
mov edi, ebx
call fcn.0322a6d0
add qword [r15], rdi
add dword [r15 + 0xc], ebx
mov r10d, dword [r14 + 0x8c]
mov r9d, dword [r14 + 0x94]
add r9d, ebx
mov dword [r14 + 0x94], r9d
cmp r9d, 3
jb 0x32105b4
mov rdx, qword [r14 + 0x48]
mov ecx, dword [r14 + 0x78]
mov eax, r10d
movzx r8d, byte [rax + rdx]
lea eax, [r10 + 1]
mov dword [r14 + 0x68], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [r14 + 0x74]
mov dword [r14 + 0x68], r8d
cmp r9d, 0x106
jae 0x32105ca
mov rax, qword [r14]
cmp dword [rax + 8], r13d
jne 0x3210430
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x3214d40
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
call fcn.03207220
xor esi, esi
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
mov qword [rbp - 0x10], rsi
xor edx, edx
mov byte [rbp - 0x20], sil
lea rcx, [rbp - 0x18]
mov byte [rbp - 0x1f], sil
lea r9d, [rsi + 1]
mov qword [rbp - 0x18], rsi
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x3214dcd
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp - 0x18]
xor edx, edx
test eax, eax
jne 0x3214dc3
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x3214dcd
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x3214dd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov qword [rbp - 0x18], rsi
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x3214e27
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp - 0x18]
xor edx, edx
test eax, eax
jne 0x3214e1d
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x3214e27
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x3214e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov qword [rbp - 0x18], rsi
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x3214e81
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x1f]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp - 0x18]
xor edx, edx
test eax, eax
jne 0x3214e77
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x3214e81
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x3214e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [rbp - 0x20]
movzx ecx, byte [rbp - 0x1f]
movzx eax, dl
mov byte [rbp - 0x18], dl
xor al, 1
mov byte [rbp - 0x16], al
movzx eax, cl
xor al, 2
mov byte [rbp - 0x17], cl
mov byte [rbp - 0x15], al
mov eax, ecx
mov ecx, edx
mov edx, eax
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov rax, qword [rbp - 0x10]
shl edx, 8
or edx, ecx
mov qword [rbx], rax
bswap edx
xor edx, edi
bswap edx
mov dword [rbp - 0x14], edx
mov rax, qword [rbp - 0x18]
mov qword [rbx + 8], rax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.03229100
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x3216310
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13d, r9d
mov r12, r8
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov edi, r15d
mov r14d, r15d
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x60]
call fcn.0322a310
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x3216370
add rax, 5
cmp r13d, 0x20
jg 0x3216595
cmp rax, 0x8000
jae 0x3216595
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x0324a680]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], r15w
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.03216050
mov r8d, 4
lea rdx, str..
lea rcx, [rsp + 0x40]
call fcn.03216190
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x321654b
nop dword [rax]
test byte [rsp + 0x60], 0x10
je 0x321650f
cmp dword [rsi + 0x10], 0
je 0x321652a
movzx ecx, word [rbp - 0x74]
movzx eax, word [rbp - 0x72]
cmp cx, 0x2e
jne 0x3216441
test ax, ax
je 0x321652a
cmp cx, cx
jne 0x3216441
cmp ax, cx
jne 0x3216441
cmp word [rbp - 0x70], 0
je 0x321652a
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.03216050
mov r8d, 1
lea rdx, [0x0324a634]
lea rcx, [rsp + 0x20]
call fcn.03216190
lea rax, [rbp - 0x74]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x3216490
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x20]
call fcn.03216190
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea r9d, [r13 + 1]
mov r8, r12
mov rdx, rsi
call fcn.03216310
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x321652a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x3216508
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x32165c0
call fcn.032291bc
jmp 0x321652a
test r14d, r14d
jne 0x321652a
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.03216f50
mov edi, eax
mov r14d, 1
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3216400
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x3216553
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x3216591
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x321658c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x32165ba
call fcn.032291bc
mov eax, edi
jmp 0x3216597
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.03229100
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.03235c2c
nop
call fcn.03235c2c
nop
int3
Function at 0x3216f50
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x10298
call fcn.03229130
sub rsp, rax
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x10280], rax
mov rax, qword [rdx]
mov rbp, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov rsi, rcx
lea r8, [0x0324a618]
mov r9, rcx
mov edx, 0x8000
lea rcx, [rsp + 0x280]
call fcn.03217d60
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x32170bc
mov qword [rsp + 0x102d8], r14
movabs r14, 0xd6bf94d5e57a42bd
mov qword [rsp + 0x10290], r15
movabs r15, 0x19db1ded53e8000
nop word [rax + rax]
movzx edx, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5e]
cmp dx, 0x2e
jne 0x3217017
test cx, cx
je 0x321706f
cmp dx, dx
jne 0x3217017
cmp cx, dx
jne 0x3217017
cmp word [rsp + 0x60], 0
je 0x321706f
test byte [rsp + 0x30], 0x10
jne 0x321706f
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x44]
shl rdx, 0x20
mov eax, ecx
or rdx, rax
mov rax, r14
sub rdx, r15
mul rdx
mov eax, dword [rbx + 0x14]
shr rdx, 0x17
cmp eax, 0xffffffff
je 0x3217049
cmp eax, edx
ja 0x321706f
mov eax, dword [rbx + 0x18]
cmp eax, 0xffffffff
je 0x3217055
cmp eax, edx
jb 0x321706f
mov r9d, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call fcn.03216bf0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3216ff0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x10290]
mov r14, qword [rsp + 0x102d8]
xor eax, eax
mov rcx, qword [rsp + 0x10280]
xor rcx, rsp
call fcn.03229100
add rsp, 0x10298
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x321709e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x32170a0
Function at 0x321c930
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x0325c200]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x321cab7
mov eax, 0x57
test rbp, rbp
je 0x321caa2
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], r12
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x58], r12
xor r8d, r8d
mov qword [rsp + 0x50], r12
xor edx, edx
mov qword [rsp + 0x48], r12
mov rcx, rbp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x321ca9d
mov eax, dword [rsp + 0xa8]
lea edx, [r12 + 2]
inc eax
mov qword [rsp + 0x98], rsi
mov ecx, eax
mov esi, r12d
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0xa8], eax
call fcn.0322fc60
mov rdi, rax
test rax, rax
jne 0x321c9f7
lea eax, [rdi + 8]
jmp 0x321ca90
mov r9d, dword [rsp + 0xa8]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x90], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x321ca74
nop dword [rax + rax]
mov rax, qword [0x0325c200]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x321ca56
mov r9, qword [0x0325c200]
mov r8, rax
mov edx, 0x103eb
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.0322fc44
mov r9d, dword [rsp + 0xa8]
inc esi
mov edx, esi
mov r8, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
je 0x321ca20
mov rcx, rdi
call fcn.0322fc44
cmp ebx, 0x103
mov eax, r12d
cmovne eax, ebx
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x98]
mov r12, qword [rsp + 0x60]
mov ecx, eax
mov r8, r14
mov rax, qword [0x0325c200]
mov rdx, r15
call qword [rax + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop rbp
ret
Function at 0x321cad0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x0325c200]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x321cc93
mov eax, 0x57
test rbp, rbp
je 0x321cc7e
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], r12
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x58], r12
xor r8d, r8d
mov qword [rsp + 0x50], r12
xor edx, edx
mov qword [rsp + 0x48], r12
mov rcx, rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x321cc79
mov eax, dword [rsp + 0xb8]
lea edx, [r12 + 2]
inc eax
mov qword [rsp + 0xa8], rsi
mov ecx, eax
mov esi, r12d
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0xb8], eax
call fcn.0322fc60
mov rdi, rax
test rax, rax
jne 0x321cb9a
lea eax, [rdi + 8]
jmp 0x321cc6c
mov eax, dword [rsp + 0xb8]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov r8, rdi
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov rcx, rbp
mov qword [rsp + 0x20], r12
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x60], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x321cc50
nop word [rax + rax]
mov rax, qword [0x0325c200]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x321cc16
mov r9, qword [0x0325c200]
mov r8, rax
mov edx, 0x103f2
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.0322fc44
mov eax, dword [rsp + 0xb8]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
inc esi
mov qword [rsp + 0x30], r12
mov edx, esi
mov qword [rsp + 0x28], r12
mov r8, rdi
mov rcx, rbp
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
je 0x321cbe0
mov rcx, rdi
call fcn.0322fc44
cmp ebx, 0x103
mov eax, r12d
cmovne eax, ebx
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x70]
mov ecx, eax
mov r8, r14
mov rax, qword [0x0325c200]
mov rdx, r15
call qword [rax + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rbp
ret
Function at 0x321cca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x48
mov rax, qword [0x0325c200]
mov r12, rcx
mov rcx, rdx
mov r14, r8
mov rsi, rdx
call qword [rax + 0xe0]
mov rdi, rax
test rax, rax
je 0x321cea2
mov qword [rsp + 0x70], rbx
mov edx, 0x103f2
mov rbx, qword [0x0325c200]
mov rcx, rsi
mov qword [rsp + 0x78], rbp
xor ebp, ebp
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x30], ebp
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
xor r9d, r9d
xor r8d, r8d
mov r15, rax
mov rcx, r14
lea rax, [rsp + 0x88]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x321ce76
mov ecx, dword [rsp + 0x88]
inc ecx
mov dword [rsp + 0x88], ecx
mov edx, ecx
lea ecx, [rax + 1]
call fcn.0322fc60
mov rbx, rax
test rax, rax
je 0x321ce76
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x321ce76
mov rax, qword [0x0325c200]
mov edx, 0x203f3
mov r8d, dword [rsp + 0x30]
mov rcx, rdi
call qword [rax + 0x58]
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x321ce21
sub eax, 1
je 0x321ce21
sub eax, 2
je 0x321ce0a
cmp eax, 3
jne 0x321ce59
mov eax, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.0321d120
mov rsi, rax
mov edx, 0x403f4
mov rcx, rdi
test rax, rax
je 0x321ce61
mov r10, qword [0x0325c200]
mov r8, rax
mov r9d, dword [rsp + 0x38]
call qword [r10 + 0x48]
mov rcx, rsi
call fcn.0322fc44
jmp 0x321ce76
mov rax, qword [0x0325c200]
mov edx, 0x403f4
mov r8d, dword [rbx]
mov rcx, rdi
call qword [rax + 0x58]
jmp 0x321ce76
mov rax, qword [0x0325c200]
mov rcx, rbx
call qword [rax + 0x2e0]
mov rsi, rax
test rax, rax
je 0x321ce59
mov r9, qword [0x0325c200]
mov r8, rax
mov edx, 0x403f4
mov rcx, rdi
call qword [r9 + 0x50]
mov rcx, rsi
call fcn.0322fc44
jmp 0x321ce76
mov edx, 0x403f4
mov rcx, rdi
mov rax, qword [0x0325c200]
mov r8, rbx
mov r9d, dword [rsp + 0x88]
call qword [rax + 0x48]
mov rcx, r15
call fcn.0322fc44
mov rax, qword [0x0325c200]
mov r8, rdi
mov rdx, r12
mov ecx, ebp
call qword [rax + 0xc0]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x321e440
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [0x0325c200]
mov r15, rcx
mov rcx, rdx
mov r12, r8
mov rdi, rdx
call qword [rax + 0xe0]
mov rsi, rax
test rax, rax
je 0x321e5ac
mov qword [rsp + 0x70], rbx
mov edx, 0x103f2
mov rbx, qword [0x0325c200]
mov rcx, rdi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], r14
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
mov r8, qword [0x0325c200]
mov edx, 0x203f3
mov rcx, rdi
mov r14, rax
call qword [r8 + pe_nt_image_headers64]
mov r9, qword [0x0325c200]
lea r8, [rsp + 0x30]
mov edx, 0x403f4
mov rcx, rdi
mov ebp, eax
call qword [r9 + 0x88]
test eax, eax
je 0x321e4e1
mov edi, 0x57
jmp 0x321e580
mov eax, ebp
sub eax, 1
je 0x321e524
sub eax, 1
je 0x321e524
cmp eax, 5
mov eax, dword [rsp + 0x30]
je 0x321e4fd
mov rbx, qword [rsp + 0x38]
jmp 0x321e554
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x88], rax
call fcn.0321ceb0
mov rbx, rax
mov rax, qword [rsp + 0x88]
jmp 0x321e554
mov rax, qword [0x0325c200]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x2d8]
mov rbx, rax
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x321e540
lea rax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, ebp
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp rbx, qword [rsp + 0x38]
je 0x321e580
mov rcx, rbx
call fcn.0322fc44
mov rcx, r14
call fcn.0322fc44
mov rax, qword [0x0325c200]
mov r8, rsi
mov rdx, r15
mov ecx, edi
call qword [rax + 0xc0]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
ret
Function at 0x321efa0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x218
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx ebx, dx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x60]
mov rbp, r9
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x321f0a0
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
mov rax, qword [0x03264190]
xorps xmm1, xmm1
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x3c], 0x11
mov dword [rsp + 0x34], ebx
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rax, rax
jne 0x321f026
xor ecx, ecx
call fcn.0321f780
mov qword [0x03264190], rax
lea r9, [rsp + 0x20]
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, rdi
call rax
mov ecx, eax
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x20]
test edi, edi
jne 0x321f078
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x321f059
cmp ecx, 0x17
je 0x321f06c
jmp 0x321f078
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x28], ecx
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
mov rax, qword [rbx + 0x20]
movups xmm0, xmmword [rax + 8]
movups xmmword [rbp], xmm0
mov rax, qword [0x03264198]
test rax, rax
jne 0x321f093
lea ecx, [rax + 2]
call fcn.0321f780
mov qword [0x03264198], rax
mov rcx, rbx
call rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.03229100
add rsp, 0x218
pop rdi
pop rsi
pop rbp
pop rbx
ret