joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2bf0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WSOCK32.dll_recv
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400b2cc5
mov dword [rsp + 0x64], 0
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x64], 0
je 0x1400b2c8c
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x80], rax
jmp 0x1400b2c98
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400b2cc5
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
add rsp, 0x90
pop rdi
ret
Function at 0x1400c9a30
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
lea eax, [rax + rax + 2]
cdqe
mov rcx, rax
call fcn.1401a7dd0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400c9aa9
mov rcx, qword [rsp + 0x58]
call fcn.1400212d0
jmp 0x1400c9c62
mov eax, dword [rsp + 0x28]
inc eax
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400c9b39
cmp dword [rsp + 0x28], 0
jne 0x1400c9b05
xor r9d, r9d
mov r8, qword [rsp + 0x20]
mov edx, 0x149
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400c9b03
mov qword [rsp + 0x20], 0xffffffffffffffff
jmp 0x1400c9b39
mov rax, qword [rsp + 0x20]
dec rax
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 0x158
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [rsp + 0x20], rax
je 0x1400c9b39
mov qword [rsp + 0x20], 0xffffffffffffffff
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400c9b91
mov r9, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
mov edx, 0x158
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400c9b91
cmp dword [rsp + 0x68], 0
je 0x1400c9b91
movsxd rax, dword [rsp + 0x28]
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.14000d4b0
jmp 0x1400c9c62
mov rcx, qword [rsp + 0x30]
call fcn.1401a7da0
cmp dword [rsp + 0x68], 0
je 0x1400c9bb9
cmp dword [rsp + 0x68], 2
jne 0x1400c9bd6
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x51]
and eax, 2
test eax, eax
je 0x1400c9bd6
mov eax, dword [rsp + 0x20]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x58]
call fcn.1400567b0
jmp 0x1400c9c62
xor r9d, r9d
mov r8, qword [rsp + 0x20]
mov edx, 0x149
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400c9c01
jmp 0x1400c9c62
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.1400aa810
test eax, eax
jne 0x1400c9c18
jmp 0x1400c9c62
mov rax, qword [rsp + 0x58]
mov r9, qword [rax]
mov r8, qword [rsp + 0x20]
mov edx, 0x148
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400c9c62
xor r8d, r8d
lea rdx, [0x1402992ec]
mov rcx, qword [rsp + 0x58]
call fcn.14004e740
jmp 0x1400c9c62
add rsp, 0x40
pop rdi
ret
Function at 0x1400ca7b0
Capabilities:
Capture webcam image

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x38], 0x80000000
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax + 0x50]
mov byte [rsp + 0x68], al
cmp byte [rsp + 0x68], 9
je 0x1400ca830
cmp byte [rsp + 0x68], 0xa
je 0x1400ca880
cmp byte [rsp + 0x68], 0xb
je 0x1400ca8de
cmp byte [rsp + 0x68], 0x11
je 0x1400ca939
jmp 0x1400ca958
xor r9d, r9d
xor r8d, r8d
mov edx, OleCreatePictureIndirect
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400ca87b
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x20]
mov edx, 0x198
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400ca958
mov r9d, 1
mov r8, 0xffffffffffffffff
mov edx, 0x100c
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400ca8dc
mov dword [rsp + 0x38], 2
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x20]
mov edx, 0x100e
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400ca958
xor r9d, r9d
mov r8d, 9
mov edx, 0x110a
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400ca937
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
mov r8d, 1
mov edx, 0x1104
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400ca958
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x419
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsp + 0x38], 0x80000000
jne 0x1400ca97b
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x1400ca99a
mov r9d, 2
lea r8, [rsp + 0x38]
xor edx, edx
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsp + 0x3c]
lea eax, [rcx + rax + 2]
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 4], eax
mov rcx, rsp
lea rdx, [0x14029d870]
call fcn.140134a00
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140135520
add rsp, 0x80
pop rdi
ret
Function at 0x1400cac30
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1400aa810
cmp eax, 1
je 0x1400cac74
xor eax, eax
jmp 0x1400cacdf
mov eax, dword [rsp + 0x20]
inc eax
mov r8d, eax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cdqe
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0
je 0x1400cacda
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
jne 0x1400cacda
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
dec rax
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400dd430
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, reloc.WSOCK32.dll_ioctlsocket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
test eax, eax
jne 0x1400dd463
xor eax, eax
jmp 0x1400dd5c9
mov byte [rsp + 0x30], 0
jmp 0x1400dd478
mov rax, qword [rsp + 0x70]
add rax, 2
mov qword [rsp + 0x70], rax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1400dd4df
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x21
je 0x1400dd4b1
cmp dword [rsp + 0x5c], 0x2b
je 0x1400dd4cd
cmp dword [rsp + 0x5c], 0x5e
je 0x1400dd4bf
jmp 0x1400dd4db
movzx eax, byte [rsp + 0x30]
or eax, 4
mov byte [rsp + 0x30], al
jmp 0x1400dd46a
movzx eax, byte [rsp + 0x30]
or eax, 2
mov byte [rsp + 0x30], al
jmp 0x1400dd46a
movzx eax, byte [rsp + 0x30]
or eax, 1
mov byte [rsp + 0x30], al
jmp 0x1400dd46a
jmp 0x1400dd4df
mov byte [rsp + 0x44], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x20], rax
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x70]
call fcn.14003e390
mov byte [rsp + 0x54], al
movzx eax, byte [rsp + 0x54]
test eax, eax
jne 0x1400dd51a
xor eax, eax
jmp 0x1400dd5c9
movzx eax, byte [rsp + 0x44]
and eax, 0xc
test eax, eax
je 0x1400dd532
movzx eax, byte [rsp + 0x30]
or eax, 4
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x44]
and eax, 3
test eax, eax
je 0x1400dd54a
movzx eax, byte [rsp + 0x30]
or eax, 2
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x44]
and eax, 0x30
test eax, eax
je 0x1400dd562
movzx eax, byte [rsp + 0x30]
or eax, 1
mov byte [rsp + 0x30], al
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14003dec0
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x58]
test eax, eax
jne 0x1400dd58d
xor edx, edx
movzx ecx, byte [rsp + 0x54]
call fcn.14003ef60
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x58]
and eax, 0x100
test eax, eax
je 0x1400dd5a7
movzx eax, byte [rsp + 0x30]
or eax, 8
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x54]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14029cca0]
call fcn.140134a00
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x1400f0ed0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xb8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd8]
mov rax, qword [0x14031eae8]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x48], 0
mov dword [rbp], 1
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400f1053
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1400f1053
mov rcx, qword [rbp + 0x98]
call fcn.1401ea000
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
lea eax, [rax + rax + 8]
mov eax, eax
add rax, 0x24
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
add rax, 0xf
cmp rax, qword [rbp + 0x58]
ja 0x1400f0fac
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1401354c0
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x60], rax
lea r8, [rbp + 0x48]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x60]
call fcn.1401349c0
add qword [rbp + 0x60], 0x20
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x24]
add eax, 4
mov r9, qword [rbp + 0x98]
lea r8, str.__s_
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400feb20
mov eax, dword [rbp + 0x24]
add eax, 3
mov eax, eax
shl rax, 1
mov dword [rbp + 0x30], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x14]
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400f1037
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x14], eax
je 0x1400f103e
mov dword [rbp], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400f1053
mov dword [rbp], 0
mov eax, dword [rbp]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
mov r8, qword [rbp + 0x48]
call fcn.140134a90
mov eax, edi
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140135520
lea rsp, [rbp + 0x78]
pop rdi
pop rbp
ret
Function at 0x1400f1830
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, reloc.WSOCK32.dll_ioctlsocket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0
jne 0x1400f187d
lea rdx, str.Parameter_1_invalid.
mov rcx, qword [rsp + 0x70]
call fcn.140022fd0
jmp 0x1400f19e3
cmp qword [rsp + 0x80], 0
je 0x1400f1897
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
test eax, eax
jne 0x1400f18b8
cmp qword [rsp + 0x88], 0
jne 0x1400f18b8
lea rdx, str.Cannot_delete_root_key
mov rcx, qword [rsp + 0x70]
call fcn.140022fd0
jmp 0x1400f19e3
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0xb0]
or eax, 0x2001f
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400f1902
jmp 0x1400f19a2
cmp qword [rsp + 0x88], 0
jne 0x1400f1980
mov rcx, qword [rsp + 0x48]
call fcn.1400f2090
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 0
jne 0x1400f197e
mov rax, qword [0x14031a1e8]
cmp dword [rax + 0xb0], 0
je 0x1400f1967
xor r9d, r9d
mov rax, qword [0x14031a1e8]
mov r8d, dword [rax + 0xb0]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rsp + 0x30], eax
jmp 0x1400f197e
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x30], eax
jmp 0x1400f19a2
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x14031a1e8]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x30], 0
je 0x1400f19c7
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.1400236b0
jmp 0x1400f19e3
xor r8d, r8d
lea rdx, [0x1402a3a1c]
mov rcx, qword [rsp + 0x70]
call fcn.14004e740
jmp 0x1400f19e3
mov rcx, rsp
lea rdx, [0x1402a4420]
call fcn.140134a00
add rsp, 0x60
pop rdi
ret
Function at 0x1400f2090
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
lea rdi, [rsp + 0x40]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x264], 0xff
lea rax, [rsp + 0x288]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x264]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400f2126
xor eax, eax
jmp 0x1400f21d1
mov rax, qword [0x14031a1e8]
mov eax, dword [rax + 0xb0]
or eax, 0x20019
lea rcx, [rsp + 0x2a8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x2b4], eax
cmp dword [rsp + 0x2b4], 0
je 0x1400f2171
jmp 0x1400f21ca
mov rcx, qword [rsp + 0x2a8]
call fcn.1400f2090
mov dword [rsp + 0x2b4], eax
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x2b4], 0
je 0x1400f219f
jmp 0x1400f21ca
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x2b4], eax
cmp dword [rsp + 0x2b4], 0
je 0x1400f21c5
jmp 0x1400f21ca
jmp 0x1400f20c8
mov eax, dword [rsp + 0x2b4]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_connect
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x2d0
pop rdi
ret
Function at 0x1400f4b90
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
call fcn.1400f63c0
mov rcx, qword [rsp + 0x50]
call fcn.1400168d0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [rax + 0x28]
movzx eax, al
test eax, eax
je 0x1400f4c10
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f4c19
mov rax, 0xffffffffffffffff
jmp 0x1400f4c58
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140070c00
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x28]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a4a30]
call fcn.140134a00
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400f70f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f7134
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x1400f713d
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a4c20]
call fcn.140134a00
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400f7570
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1402a4ac0]
call fcn.140134a00
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x1400f77c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x30]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x34]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1402a4b20]
call fcn.140134a00
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x1400f9250
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
lea rdi, [rsp + 0x20]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
cmp qword [rsp + 0x2e0], 0
je 0x1400f92ac
mov rax, qword [rsp + 0x2e0]
movzx eax, word [rax]
test eax, eax
jne 0x1400f92b3
xor al, al
jmp 0x1400f94ae
mov r8d, 4
lea rdx, [0x1402a5ba8]
mov rcx, qword [rsp + 0x2e0]
call fcn.1401ff930
test eax, eax
je 0x1400f92e3
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2b0], rax
jmp 0x1400f92f7
mov rax, qword [rsp + 0x2e0]
add rax, 8
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1402a5b28]
mov rcx, qword [rsp + 0x20]
call fcn.140036380
test rax, rax
je 0x1400f942a
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x298], rax
cmp qword [rsp + 0x298], 0xffffffffffffffff
jne 0x1400f934b
xor al, al
jmp 0x1400f94ae
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x6c]
cmp eax, 0x2e
jne 0x1400f93b5
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x6c]
test eax, eax
je 0x1400f9395
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x6c]
cmp eax, 0x2e
jne 0x1400f93b5
mov eax, 2
imul rax, rax, 2
movzx eax, word [rsp + rax + 0x6c]
test eax, eax
jne 0x1400f93b5
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400f93b3
xor al, al
jmp 0x1400f94ae
jmp 0x1400f934b
cmp dword [rsp + 0x2f0], 0
je 0x1400f93f7
mov eax, dword [rsp + 0x2f0]
mov ecx, dword [rsp + 0x40]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x2f0]
je 0x1400f93f7
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400f93f5
xor al, al
jmp 0x1400f94ae
jmp 0x1400f93bf
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x2e8], 0
je 0x1400f941e
mov rax, qword [rsp + 0x2e8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov al, 1
jmp 0x1400f94ae
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x2a0], eax
cmp dword [rsp + 0x2f0], 0
je 0x1400f9468
mov eax, dword [rsp + 0x2f0]
mov ecx, dword [rsp + 0x2a0]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x2f0]
je 0x1400f9468
xor al, al
jmp 0x1400f94ae
cmp qword [rsp + 0x2e8], 0
je 0x1400f9484
mov rax, qword [rsp + 0x2e8]
mov ecx, dword [rsp + 0x2a0]
mov dword [rax], ecx
cmp dword [rsp + 0x2a0], 0xffffffff
je 0x1400f949b
mov dword [rsp + 0x2b8], 1
jmp 0x1400f94a6
mov dword [rsp + 0x2b8], 0
movzx eax, byte [rsp + 0x2b8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a66a0]
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x2d0
pop rdi
ret