joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000241e
Capabilities:
Empty the recycle bin

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
and byte [ebp - 0x120], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x45
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov esi, 0x118
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 4], ebx
div ecx
test eax, eax
jbe 0x100024cb
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0xc], eax
push esi
lea eax, [ebp - 0x120]
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call ebx
cmp byte [ebp + eax - 0x121], 0x5c
jne 0x100024a0
lea eax, [ebp - 0x120]
push eax
call ebx
and byte [ebp + eax - 0x121], 0
push 3
lea eax, [ebp - 0x120]
push 0x1000a348
push eax
push dword [ebp - 8]
call fcn.1000357b
mov eax, dword [edi]
xor edx, edx
mov ecx, esi
inc dword [ebp - 4]
div ecx
add dword [ebp + 0xc], esi
cmp dword [ebp - 4], eax
jb 0x10002469
xor ebx, ebx
push 7
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [edi], ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100024e3
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
and ax, 0xe498
add eax, 0x1b68
mov dword [ecx], eax
mov eax, dword [esp + 8]
and dword [eax], 0
ret 0xc

Function at 0x1000250c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [ebp + 0xc]
and byte [ebp - 0x100], 0
push edi
push 0x3f
and dword [eax], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
and byte [ebp - 0x200], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
push 0x2a
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x10002568
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b69
jmp 0x100025b0
and byte [edi], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push eax
call esi
inc edi
lea eax, [ebp - 0x200]
push edi
push eax
call esi
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp + 0x10]
pop esi
neg eax
sbb eax, eax
and ax, 0xe499
add eax, 0x1b67
mov dword [ecx], eax
pop edi
leave
ret 0xc
Function at 0x10002685
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, 0x10007494
call fcn.10006fb0
sub esp, 0x230
push ebx
push esi
push edi
xor edi, edi
push 0x200
lea eax, [ebp - 0x23c]
push edi
mov dword [ebp - 0x14], ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, eax
mov dword [ebp - 0x10], edi
cmp ebx, edi
jbe 0x1000278d
mov eax, dword [ebp + 8]
lea esi, [eax + 0x100]
lea edi, [esi - 0x100]
push 0x118
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp + eax - 0x23c]
push eax
push str.root_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x10]
and byte [esi - 0xf9], 0
lea eax, [ebp + eax - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp byte [esi - 0xfb], 0x43
mov byte [esi], al
jl 0x10002778
and dword [ebp - 0x3c], 0
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
lea eax, [ebp + eax - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10002778
mov eax, dword [ebp - 0x34]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x14], eax
add dword [ebp - 0x10], 4
add esi, 0x118
cmp dword [ebp - 0x10], ebx
jb 0x100026d7
xor edi, edi
shr ebx, 2
imul ebx, ebx, 0x118
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [esi], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx], edi
call fcn.10006bb6
mov eax, dword [ebp - 0x14]
push edi
push 0x1002
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edi
add eax, 0x2e4
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x100027d3
mov dword [esi], edi
mov dword [ebx], 0x1b59
jmp 0x100027ec
push dword [esi]
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov dword [esi], edi
mov dword [ebx], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x10002be3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], bl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
mov byte [ebp - 0x100], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov esi, 0x100
push esi
lea eax, [ebp - 0x200]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add edi, esi
push esi
lea eax, [ebp - 0x100]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
call fcn.10001fd1
push ebx
lea eax, [ebp - 0x100]
push ebx
push eax
lea eax, [ebp - 0x200]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
and ax, 0xe4a3
add eax, 0x1b5d
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop ebx
leave
ret 0xc
Function at 0x10002c81
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, 0x100074ec
call fcn.10006fb0
sub esp, 0x158
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
mov dword [ebp - 0x10], ecx
push edi
mov byte [eax + edi], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x10002cc0
mov eax, dword [ebp + 0x10]
mov dword [esi], ebx
mov dword [eax], 0x1b5c
jmp 0x10002df0
mov eax, dword [esi]
cmp byte [eax + edi - 1], 0x5c
lea eax, [eax + edi - 1]
jne 0x10002ccf
mov byte [eax], bl
push 0x4e
xor eax, eax
pop ecx
lea edi, [ebp - 0x15c]
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x10002d3a
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
push 0x1000a054
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 0x80
lea ecx, [ebp - 0xcc]
push eax
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x4c], eax
mov eax, 0x140
mov dword [esi], eax
push eax
lea eax, [ebp - 0x164]
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [edi], ebx
call fcn.10006bb6
mov eax, dword [ebp - 0x10]
push ebx
push 0x1002
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ebx
add eax, 0x2e4
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x10002dcb
mov dword [esi], ebx
mov dword [edi], 0x1b59
jmp 0x10002de4
push dword [esi]
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov dword [esi], ebx
mov dword [edi], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100038a2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push dword [eax]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x100038c8
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b5f
jmp 0x100038f7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100038eb
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], 0x1b5f
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100038fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100039a8
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
push 0xe00f003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x100039ea
mov esi, dword [ebp + 8]
push 0xf01ff
lea eax, [esi + 1]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x100039fa
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b65
jmp 0x10003a62
mov eax, dword [ebp + 0xc]
push 6
pop ecx
lea edi, [ebp - 0x1c]
mov eax, dword [eax]
xor edx, edx
mov byte [eax + esi], bl
xor eax, eax
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
movsx eax, byte [esi]
sub eax, ebx
je 0x10003a2c
dec eax
jne 0x10003a39
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x10003a37
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edx, eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg edx
sbb edx, edx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
and dx, 0xe49b
add edx, 0x1b65
mov dword [eax], edx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10003a69
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push 0xe00f003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x10003a94
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b6c
jmp 0x10003ae1
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
jne 0x10003ab2
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003a84
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
push ebx
call edi
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
neg esi
sbb esi, esi
and si, 0xe494
add esi, 0x1b6c
mov dword [eax], esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10003ae8
Capabilities:
Acquire debug privileges
Enumerate services

Disassembly:
mov eax, 0x10007550
call fcn.10006fb0
sub esp, 0xa6c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 0x18], ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xe00f003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x10003ba0
push 0xffff
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
pop ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xfffe
push esi
push 3
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x10003bb3
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b64
jmp 0x10003cae
lea ecx, [ebp - 0x3c]
call fcn.10006bb6
mov eax, dword [ebp - 0x18]
push ebx
push 0x1002
lea ecx, [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ebx
add eax, 0x2e4
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x10003bf6
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1b59
jmp 0x10003ca2
mov ecx, 0x28a
xor eax, eax
lea edi, [ebp - 0xa77]
mov byte [ebp - 0xa78], bl
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
jbe 0x10003c88
add esi, 0xc
mov edi, 0xa2c
push edi
lea eax, [ebp - 0xa78]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [esi - 0xc]
lea eax, [ebp - 0xa78]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi - 8]
lea eax, [ebp - 0x974]
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0x1c]
call fcn.10003cbf
lea eax, [ebp - 0xa78]
push edi
push eax
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::Write
inc dword [ebp - 0x14]
add esi, 0x24
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x10003c1e
mov esi, dword [ebp - 0x24]
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x10003cbf
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
push 0xf01ff
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x10003db3
and dword [ebp + 8], 0
push ebx
mov ebx, 0x2000
push esi
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp + 8]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10003da1
mov eax, dword [esi + 8]
mov dword [edi + 0x224], eax
mov eax, dword [esi]
mov dword [edi + 0x21c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x220], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x428], eax
push dword [esi + 0xc]
lea eax, [edi + 0x228]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x18]
lea eax, [edi + 0x42c]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x10]
lea eax, [edi + 0x328]
push eax
call sub.MSVCRT.dll_strcpy
push dword [esi + 0x1c]
lea eax, [edi + 0x62c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x20
push edi
push str.SYSTEMControlSet001Services_s
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 4]
add esp, 0xc
add edi, 0x82c
push edi
push str.Description
push esi
call fcn.10003db8
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x10003db8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.100070d0
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10003dea
xor eax, eax
jmp 0x10003e59
push 0x2000
lea eax, [ebp - 0x2008]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x1fff
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10003e3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003de6
lea eax, [ebp - 0x2008]
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
leave
ret 0xc
Function at 0x10004087
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp + 8]
push 4
push ecx
push 1
xor esi, esi
push 6
push eax
mov dword [ebx + 0x11c], eax
mov dword [ebp + 8], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
and byte [ebp - 0x128], 0
push 0x3e
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x128]
push 0x1000a0a8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x128]
push esi
push esi
push esi
push esi
push esi
push esi
push closesocket
push eax
call sub.AVICAP32.dll_capCreateCaptureWindowA
cmp eax, esi
mov dword [ebx + 8], eax
je 0x1000419e
mov ecx, ebx
call fcn.100041a7
test eax, eax
je 0x1000419e
mov eax, dword [ebx + 0x10]
sub esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 4], eax
lea ecx, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1000474a
test eax, eax
je 0x1000418e
mov ecx, ebx
call fcn.10004228
test eax, eax
je 0x1000418e
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
call esi
test eax, eax
je 0x10004179
cmp dword [ebp - 0x28], 0x10
je 0x10004179
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
jmp 0x1000415a
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, ebx
call fcn.10004298
push 1
pop eax
jmp 0x100041a0
mov ecx, ebx
call fcn.10004298
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10004884
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x84]
push eax
push 0x21808
lea eax, [esi + 0x60]
push 3
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapLockBits
xor ebx, ebx
cmp eax, ebx
je 0x100048b4
mov dword [edi + 8], eax
mov eax, dword [esi + 0x80]
lea ecx, [esi + 0x9c]
mov dword [ebp + 0xc], ecx
push ecx
push 0x21808
lea ecx, [esi + 0x70]
push 3
push ecx
push dword [eax + 4]
mov dword [ebp - 4], eax
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
je 0x100048e4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push dword [esi + 0x54]
push dword [esi + 0x94]
push dword [esi + 0xac]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10004a07
push dword [esi + 0x54]
push dword [esi + 0x94]
push dword [esi + 0xac]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x84]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, ebx
je 0x10004933
mov dword [edi + 8], eax
mov edi, dword [esi + 0x80]
push dword [ebp + 0xc]
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, ebx
je 0x1000494b
mov dword [edi + 8], eax
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x40]
push edi
push ebx
mov dword [esi + 0x48], ebx
push ebx
mov dword [esi + 0x4c], ebx
push dword [esi + 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x80]
lea edx, [esi + 8]
mov dword [ebp + 0xc], eax
push edx
lea edx, [esi + 0x28]
push edx
push ecx
push dword [eax + 4]
call sub.gdiplus.dll_GdipSaveImageToStream
cmp eax, ebx
je 0x1000498f
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x5c]
push edi
push 1
mov dword [esi + 0x48], ebx
push ebx
mov dword [esi + 0x4c], ebx
push dword [esi + 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x50], ebx
mov dword [ebp + 0xc], eax
je 0x100049ca
add dword [ebp + 0xc], 0x26f
add dword [edi], 0xfffffd91
jmp 0x100049d1
mov dword [esi + 0x50], 1
push ebx
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100049fa
push ebx
push dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100049fa
push 1
pop ebx
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, ebx
jmp 0x10004a46
lea eax, [esi + 0x84]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, ebx
je 0x10004a1d
mov dword [edi + 8], eax
mov esi, dword [esi + 0x80]
push dword [ebp + 0xc]
push dword [esi + 4]
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, ebx
je 0x10004a35
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp + 8]
call fcn.10006346
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 8