joyce8/EMBER2024-capa huggingface dataset:
Function at 0x795de0
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 0x795fc1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x795f55
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 [0x794628]
call fcn.00797ad4
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 0x795ece
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 0x795e9d
cmp dword [ebp - 0x10], 0xc800
jbe 0x795ead
jmp 0x795e9f
jle 0x795ead
mov dword [ebp - 0x10], 0xc800
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x795ebe
cmp dword [ebp - 0x10], 0x800
jae 0x795ece
jmp 0x795ec0
jge 0x795ece
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 [0x794f34]
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 0x795f8b
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 0x795fc8
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 4]
mov edx, dword [0x794f34]
call fcn.0040d3dc
ret
Function at 0x79b174
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 0x79b288
cmp dword [esi], 0
je 0x79b288
mov eax, dword [esi]
call fcn.004070f4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x79b281
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 0x79b1e6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
test eax, eax
je 0x79b1f0
inc dword [ebp - 4]
jmp 0x79b1f0
call fcn.00409f88
jmp 0x79b288
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 0x79b247
call sub.KERNEL32.DLL_GetLastError_2
cmp eax, 0x103
jne 0x79b219
call fcn.00409f88
jmp 0x79b288
cmp eax, 0x7a
jne 0x79b247
cmp dword [esi], 0
jbe 0x79b247
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 0x79b25e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
test eax, eax
je 0x79b25e
inc dword [ebp - 4]
test bl, bl
jne 0x79b1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79b288
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 0x79b3cc
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 0x79b4b4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push edi
mov esi, 0x79b4c4
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 0x79b49e
call fcn.0079b294
test al, al
je 0x79b499
call dword [0x8c1050]
mov esi, eax
cmp esi, 0xffffffff
je 0x79b494
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 [0x8c1058]
cmp eax, 1
jne 0x79b48d
cmp dword [edi + 4], 0
jne 0x79b48d
mov bl, 1
push esi
call dword [0x8c1054]
call fcn.0079b38c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79b4bb
lea eax, [ebp - 4]
call fcn.0040a7b4
ret
Function at 0x79e240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x79e249
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
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
mov eax, dword [ebp + 0xc]
call fcn.0040a874
mov eax, dword [ebp + 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x79e3d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor edx, edx
push ebp
push 0x79e383
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push 0x79e3f4
push dword [ebp - 4]
push 0x79e408
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040baec
mov eax, dword [ebp - 0x18]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x79e379
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040b3c4
push dword [ebp - 0x1c]
push 0x79e438
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov ecx, 0
call fcn.0040b3c4
push dword [ebp - 0x20]
push 0x79e438
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.005fb6c4
push dword [ebp - 0x24]
push 0x79e438
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.0040b0d0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x79e34e
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
call fcn.0040ad50
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x79e38d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x79e3d9
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040a820
lea eax, [ebp - 0x18]
call fcn.0040a790
lea eax, [ebp - 0xc]
call fcn.0040a7b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp + 8]
mov edx, 2
call fcn.0040a7f0
ret
Function at 0x7ae528
Capabilities:
Check for time delay via gettickcount
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7ae71e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7ae740
push dword [ebp - 4]
push 0x7ae760
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.0040baec
mov edx, dword [ebp - 0x64]
mov eax, ebx
call fcn.0079ed98
mov eax, dword [0x8c1074]
mov dword [ebx + 0xe4], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f88
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
movzx eax, word [ebp + 0x10]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push 0x7ae770
push dword [ebp - 4]
push 0x7ae770
push 0x7ae760
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.0040baec
mov eax, dword [ebp - 0x68]
call fcn.0040b7f8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebx + 0xb1], eax
cmp byte [ebp - 9], 0
je 0x7ae6f6
test esi, esi
jle 0x7ae6f6
call sub.KERNEL32.DLL_GetTickCount_1
mov edi, eax
jmp 0x7ae64c
mov eax, dword [0x8c226c]
mov eax, dword [eax]
call fcn.005efad0
cmp byte [ebx + 0xb6], 0
jne 0x7ae67f
push 0x64
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x7ae67f
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, edi
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x7ae67b
cmp eax, dword [esp]
pop edx
pop eax
ja 0x7ae637
jmp 0x7ae67f
pop edx
pop eax
jg 0x7ae637
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
sete al
and al, byte [ebp + 8]
je 0x7ae6e6
push 0x7ae780
lea edx, [ebp - 0x70]
mov eax, esi
call fcn.00424120
push dword [ebp - 0x70]
push 0x7ae7a0
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.0040baec
mov edx, dword [ebp - 0x6c]
mov eax, ebx
call fcn.0079ed98
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [0x8c1078]
mov dword [ebx + 0xe4], eax
jmp 0x7ae6f6
lea eax, [ebx + 0xe4]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ae725
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.0040a7f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a7f0
ret
Function at 0x7ae860
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 5], cl
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x7ae9f1
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x7ae9b0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 4]
call fcn.0040a790
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push esi
call sub.KERNEL32.DLL_PeekNamedPipe
test eax, eax
je 0x7ae958
cmp dword [ebp - 0xc], 0
jbe 0x7ae958
push 0
lea eax, [ebp - 0x10]
push eax
push 0x101
lea eax, [ebp - 0x111]
push eax
push esi
call sub.KERNEL32.DLL_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x111]
mov ecx, 0x101
push 0
call fcn.0040af98
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.0040b230
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.007ae7b4
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 4]
call fcn.0040ba0c
test bl, bl
je 0x7ae966
cmp dword [ebp - 0x10], 0
jne 0x7ae8bb
cmp byte [ebp - 5], 0
je 0x7ae996
lea edx, [ebp - 0x124]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call fcn.0040ba0c
mov edx, dword [ebp - 0x124]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
jmp 0x7ae9b0
lea edx, [ebp - 0x128]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x128]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ae9f8
lea eax, [ebp - 0x128]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.0040a820
lea eax, [ebp - 0x118]
call fcn.0040a790
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x7b4e48
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7b4f16
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x60799c]
call fcn.00608b7c
mov dword [ebp - 8], eax
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00608c44
mov edx, 0xf003f
mov eax, dword [ebp - 8]
call fcn.0060a4d4
mov eax, dword [0x8c18b8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 0x1b], eax
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x7b4f30
call fcn.0040ba64
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00609124
test al, al
je 0x7b4ee6
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x7b4fb8
call fcn.0040ba64
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0079ed98
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 0x7b4f1d
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x7b7604
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x7b763f
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.0040b8b4
jmp 0x7b7646
mov eax, ebx
call fcn.0040a790
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7c6c54
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
xor edx, edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7c6dc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x7c6ddc
call fcn.0040ab70
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
call fcn.005fb7b0
mov eax, dword [ebp - 0x218]
mov ecx, 3
mov edx, 1
call fcn.0040bc34
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x7c6cfd
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00424148
lea eax, [ebp - 4]
mov edx, 0xc8
call fcn.0040b98c
mov eax, dword [ebp - 4]
test eax, eax
je 0x7c6d16
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetComputerNameW
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040bc34
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.00423620
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.0040ba0c
lea eax, [ebp - 0x228]
mov edx, dword [ebx]
mov ecx, 0
call fcn.0040b3c4
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.0060c110
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.0040ab70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c6dc8
lea eax, [ebp - 0x228]
call fcn.0040a7b4
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.0040a7f0
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x7c6de0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7c6e7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040a790
xor edx, edx
push ebp
push 0x7c6e5c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, 0xfa
call fcn.0040b98c
mov eax, dword [ebp - 4]
test eax, eax
je 0x7c6e2c
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetComputerNameW
push ebx
mov ecx, dword [ebp - 8]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040bc34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7c6e66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c6e83
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x7c6e8c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x7c6f5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040a790
xor eax, eax
push ebp
push 0x7c6f2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
call fcn.007c6de0
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040b3c4
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.0040b218
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
je 0x7c6f20
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.0040b830
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7c6f39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c6f61
lea eax, [ebp - 0x198]
call fcn.0040a790
lea eax, [ebp - 4]
call fcn.0040a7b4
ret
Function at 0x7c812c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x7c8134
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7c82d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.007f7a54
test al, al
jne 0x7c828e
mov dl, 1
mov eax, dword [0x47e80c]
call fcn.004a2178
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
call fcn.005fb7b0
lea eax, [ebp - 0x10]
mov edx, 0x7c82f0
call fcn.0040ba0c
mov eax, dword [ebp - 0x10]
mov dl, 1
call fcn.00424d98
test al, al
je 0x7c81b9
lea eax, [ebp - 0x14]
call fcn.005fb7b0
lea eax, [ebp - 0x14]
mov edx, 0x7c82f0
call fcn.0040ba0c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x7c820d
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0042340c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00423774
mov eax, dword [ebp - 0x18]
mov edx, 0x7c8314
call fcn.0040bbfc
jne 0x7c8209
mov dword [ebp - 0xc], ebx
jmp 0x7c820d
inc ebx
dec esi
jne 0x7c81d2
cmp dword [ebp - 0xc], 0
jl 0x7c8234
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edx, 0x7c8334
call fcn.0040ba64
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
jmp 0x7c825c
mov edx, 0x7c8314
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x7c8334
call fcn.0040ba64
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x2c]
call fcn.005fb7b0
lea eax, [ebp - 0x2c]
mov edx, 0x7c82f0
call fcn.0040ba0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov bl, 1
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 8], edx
call fcn.00408ac4
call fcn.007f7a54
test al, al
je 0x7c82af
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c82d9
lea eax, [ebp - 0x2c]
mov edx, 8
call fcn.0040a7f0
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x7c8340
Capabilities:
Check if file exists
Get file attributes
Set 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 0x7c8397
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b7f8
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c839e
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x7c83a4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x7c83ac
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
xor eax, eax
push ebp
push 0x7c8591
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor ebx, ebx
xor edx, edx
push ebp
push 0x7c8529
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.007c8340
mov eax, dword [ebp - 4]
call fcn.0040b7f8
mov esi, eax
push esi
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
call sub.KERNEL32.DLL_GetLastError_2
movzx eax, byte [ebp - 6]
xor al, 1
and al, byte [ebp - 5]
je 0x7c842a
mov eax, dword [ebp - 4]
call fcn.00793ed4
mov eax, dword [ebp - 4]
call fcn.004253d8
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x7c851f
lea ecx, [ebp - 0xc]
mov edx, 0x7c85b0
mov eax, dword [ebp - 4]
call fcn.0042551c
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.0040b7f8
push eax
push esi
call sub.KERNEL32.DLL_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
call sub.KERNEL32.DLL_GetLastError_2
cmp byte [ebp - 6], 0
je 0x7c84e1
lea ecx, [ebp - 0x14]
mov edx, 0x7c85b0
mov eax, dword [ebp - 4]
call fcn.0042551c
mov eax, dword [ebp - 0x14]
mov dl, 1
call fcn.00424d98
test al, al
je 0x7c84e1
lea ecx, [ebp - 0x18]
mov edx, 0x7c85b0
mov eax, dword [ebp - 4]
call fcn.0042551c
mov eax, dword [ebp - 0x18]
call fcn.007c812c
test al, al
je 0x7c8515
inc ebx
push 0x7c85c8
lea ecx, [ebp - 0x20]
mov edx, 0x7c85b0
mov eax, dword [ebp - 4]
call fcn.0042551c
push dword [ebp - 0x20]
push 0x7c85f0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040baec
mov eax, dword [ebp - 0x1c]
mov edx, 2
call fcn.00663098
jmp 0x7c8515
mov eax, dword [ebp - 4]
call fcn.007c812c
test al, al
je 0x7c8515
push 0x7c85c8
push dword [ebp - 4]
push 0x7c85f0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040baec
mov eax, dword [ebp - 0x24]
mov edx, 2
call fcn.00663098
inc ebx
test ebx, ebx
mov eax, dword [0x8c20dc]
setg byte [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7c8566
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7c8598
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.0040a7f0
lea eax, [ebp - 0xc]
call fcn.0040a790
lea eax, [ebp - 4]
call fcn.0040a790
ret