joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bd818
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x40
lea eax, [ebp - 4]
push eax
push esi
mov edi, dword [ebx + 4]
mov eax, edi
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x6beaa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x50]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 1], dl
lea eax, [ebp - 0x50]
mov edx, dword [0x6be944]
call fcn.0040c374
xor eax, eax
push ebp
push 0x6beb7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp - 0x48], 0
je 0x6beb63
cmp byte [ebp - 0x2b], 0
je 0x6beb63
lea eax, [ebp - 0x10]
push eax
push 0x40
xor eax, eax
mov al, byte [ebp - 0x2b]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_VirtualProtect
cmp byte [ebp - 1], 0
je 0x6beb26
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x6beb4c
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x2b]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
xor eax, eax
mov al, byte [ebp - 0x2b]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6beb86
lea eax, [ebp - 0x50]
mov edx, dword [0x6be944]
call fcn.0040c1e0
ret
Function at 0x6c2f84
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6c3036
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp byte [ebx + 4], 0
je 0x6c3020
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov esi, eax
test esi, esi
jne 0x6c2fd3
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
jmp 0x6c3020
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
push esi
call sub.advapi32.dll_OpenServiceW
mov edi, eax
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
test edi, edi
je 0x6c301a
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
push edi
call sub.advapi32.dll_CloseServiceHandle
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c303d
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x6c39b4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6c3a7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
cmp byte [ebx + 4], 0
je 0x6c3a64
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov esi, eax
test esi, esi
jne 0x6c3a03
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
jmp 0x6c3a64
push 5
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
push esi
call sub.advapi32.dll_OpenServiceW
mov edi, eax
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
test edi, edi
je 0x6c3a57
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x6c3a40
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x6c3a4f
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 9], eax
mov dword [ebp - 8], 0xfffffffd
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x6c3a5e
mov dword [ebp - 8], 0xfffffffe
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c3a81
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x6c925c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6c92c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040b7f8
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c92c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret

Function at 0x6ce7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6ce811
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x6ce7f5
test al, 0x10
jne 0x6ce7f9
xor ebx, ebx
jmp 0x6ce7fb
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ce818
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x6f3dd4
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [0x8c1888]
cmp dword [eax], 1
jne 0x6f3ec6
push 0x6f3f74
push 0x6f3fa4
call sub.user32.dll_FindWindowW
test eax, eax
je 0x6f3e07
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x6f3f68
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f88
mov dword [ebp - 0x54], 0x44
mov eax, dword [0x8bbc78]
call fcn.004070f4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6f3ebf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x8bbc78]
push eax
push 0
push 0x6f3fc4
push 0
call sub.KERNEL32.DLL_SearchPathW
test eax, eax
jne 0x6f3e62
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3ea9
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
jne 0x6f3e92
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3ea9
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6f3f68
mov eax, dword [ebp - 8]
call fcn.00407110
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x6f3ee4
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3f68
push 0x14
push 0x6f3fdc
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x6f3f07
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3f68
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x6f3f25
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3f68
cmp dword [ebp - 0x7c], 4
jne 0x6f3f38
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x6f3f68
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x6f3f5d
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 4], eax
jmp 0x6f3f68
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7342a4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x7342ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.0040b7f8
push eax
mov eax, ebx
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CopyFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x734306
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret

Function at 0x73e05c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.0040a790
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetComputerNameW
test eax, eax
je 0x73e08d
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.0040a918
add esp, 0x24
pop ebx
ret

Function at 0x75d7cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, 8
test byte [edx + 1], 0x80
setne bl
movzx esi, word [edx]
add esi, esi
movzx edi, cl
shr edi, 7
or si, di
mov word [edx], si
test bl, bl
je 0x75d7f5
xor word [edx], 0x1021
add ecx, ecx
and cl, 0xff
dec eax
jne 0x75d7d4
pop edi
pop esi
pop ebx
ret
Function at 0x7943cc
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x79457e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x794528
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xe42
call fcn.00407638
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp xword [ebp - 0x38]
wait
call fcn.00428164
fld xword [ebp - 0x38]
fsubp st(1)
fstp xword [ebp - 0x38]
wait
mov eax, 0x64
call fcn.00407638
inc eax
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fld1
fdivrp st(1)
fld xword [ebp - 0x38]
faddp st(1)
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00428034
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_SystemTimeToFileTime
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x794517
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000100
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x7944ce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetFileTime
test eax, eax
je 0x7944c3
mov edx, dword [ebp - 4]
mov eax, 0x794598
call fcn.00794274
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FlushFileBuffers
jmp 0x7944fa
call sub.KERNEL32.DLL_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00424148
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x7945c8
call fcn.0040ba64
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00794274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79451e
cmp dword [ebp - 8], 0xffffffff
je 0x794516
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
Function at 0x794650
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x794805
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x7947af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xe42
call fcn.00407638
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp xword [ebp - 0x38]
wait
call fcn.00428164
fld xword [ebp - 0x38]
fsubp st(1)
fstp xword [ebp - 0x38]
wait
mov eax, 0x64
call fcn.00407638
inc eax
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fld1
fdivrp st(1)
fld xword [ebp - 0x38]
faddp st(1)
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00428034
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_SystemTimeToFileTime
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x79479e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x2000000
push 3
push 0
push 0
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x794755
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetFileTime
test eax, eax
je 0x79474a
mov edx, dword [ebp - 4]
mov eax, 0x794820
call fcn.00794274
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FlushFileBuffers
jmp 0x794781
call sub.KERNEL32.DLL_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00424148
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x79484c
call fcn.0040ba64
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00794274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7947a5
cmp dword [ebp - 8], 0xffffffff
je 0x79479d
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
Function at 0x794a6c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x794b50
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x20
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0040cba4
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jne 0x794ab1
cmp dword [ebp + 8], 1
jb 0x794ab8
jmp 0x794ab3
jl 0x794ab8
mov ebx, 0x40
cmp dword [ebp + 0xc], 0
jne 0x794ac6
cmp dword [ebp + 8], 5
jb 0x794acd
jmp 0x794ac8
jl 0x794acd
mov ebx, 0x80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ecx, 3
mov edx, 1
call fcn.0040bc34
mov eax, dword [ebp - 0x14]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
je 0x794b3a
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
shr ecx, 0xa
cmp ecx, 0x40
jbe 0x794b1c
mov ecx, 0x40
mov eax, ebx
cdq
push edx
push eax
mov eax, ecx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x794b34
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x794b3a
jmp 0x794b38
pop edx
pop eax
jle 0x794b3a
mov ebx, ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x794b57
lea eax, [ebp - 0x14]
call fcn.0040a790
ret
Function at 0x795724
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x7958aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x79584c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov dl, 1
mov eax, dword [0x794130]
call fcn.007975dc
mov dword [ebp - 4], eax
mov ebx, 0x4000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 3
mov edx, 1
call fcn.0040bc34
mov eax, dword [ebp - 0x24]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
je 0x7957d7
mov ebx, dword [ebp - 8]
imul ebx, dword [ebp - 0xc]
cmp ebx, 0xc800
jle 0x7957ca
mov ebx, 0xc800
cmp ebx, 0x800
jge 0x7957d7
mov ebx, 0x800
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
call fcn.0040cc84
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
cdq
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004a226c
xor eax, eax
push ebp
push 0x795838
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x795842
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x795882
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.00408ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7958b1
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040a7f0
ret
Function at 0x7958e8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x795ac9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x795a5d
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov dl, 1
mov eax, dword [0x794130]
call fcn.007975dc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 3
mov edx, 1
call fcn.0040bc34
mov eax, dword [ebp - 0x2c]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
je 0x7959d6
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x7959a5
cmp dword [ebp - 0x10], 0xc800
jbe 0x7959b5
jmp 0x7959a7
jle 0x7959b5
mov dword [ebp - 0x10], 0xc800
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x7959c6
cmp dword [ebp - 0x10], 0x800
jae 0x7959d6
jmp 0x7959c8
jge 0x7959d6
mov dword [ebp - 0x10], 0x800
mov dword [ebp - 0xc], 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
call fcn.0040cc84
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x794a3c]
call fcn.0040d2b8
add esp, 4
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
call fcn.00407f88
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
sub eax, 1
sbb edx, 0
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.004a2200
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x795a93
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00408ac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x795ad0
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 4]
mov edx, dword [0x794a3c]
call fcn.0040d3dc
ret
Function at 0x79ac7c
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
lea esi, [ebp - 0x10]
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
push esi
push 0
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
cmp eax, 0x7a
jne 0x79ad90
cmp dword [esi], 0
je 0x79ad90
mov eax, dword [esi]
call fcn.004070f4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x79ad89
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
mov eax, dword [ebp - 8]
push eax
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x79acee
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
test eax, eax
je 0x79acf8
inc dword [ebp - 4]
jmp 0x79acf8
call fcn.00409f88
jmp 0x79ad90
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x79ad4f
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 0x103
jne 0x79ad21
call fcn.00409f88
jmp 0x79ad90
cmp eax, 0x7a
jne 0x79ad4f
cmp dword [esi], 0
jbe 0x79ad4f
mov eax, dword [ebp - 8]
call fcn.00407110
mov eax, dword [esi]
call fcn.004070f4
mov dword [ebp - 8], eax
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x79ad66
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
test eax, eax
je 0x79ad66
inc dword [ebp - 4]
test bl, bl
jne 0x79acf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79ad90
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FindCloseUrlCache
mov eax, dword [ebp - 8]
call fcn.00407110
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x79aed4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a884
xor eax, eax
push ebp
push 0x79afbc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push edi
mov esi, 0x79afcc
lea edi, [ebp - 0x1d8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, edi
xor ecx, ecx
mov edx, 0x11c
call fcn.00407f88
xor eax, eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jl 0x79afa6
call fcn.0079ad9c
test al, al
je 0x79afa1
call dword [0x8c0058]
mov esi, eax
cmp esi, 0xffffffff
je 0x79af9c
mov eax, dword [ebp - 4]
call fcn.0040b218
push eax
call sub.wsock32.dll_inet_addr
mov edx, dword [ebp - 8]
push edx
push 0x11c
push edi
push 0
push 0x40
lea edx, [ebp - 0x1d8]
push edx
push eax
push esi
call dword [0x8c0060]
cmp eax, 1
jne 0x79af95
cmp dword [edi + 4], 0
jne 0x79af95
mov bl, 1
push esi
call dword [0x8c005c]
call fcn.0079ae94
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79afc3
lea eax, [ebp - 4]
call fcn.0040a7b4
ret