joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6471ec
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov eax, ebx
call fcn.0040a5d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x64724a
mov esi, edi
test esi, esi
je 0x647226
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [esp + 4]
push eax
push esi
mov eax, edi
call fcn.0040a230
push eax
push ebp
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push ebp
call sub.kernel32.dll_CloseHandle_1
jmp 0x64724c
xor ebx, ebx
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x647254
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
mov ebx, edi
mov eax, ebx
test eax, eax
je 0x64726a
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x647271
mov bl, 1
jmp 0x6472d4
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.0040a5d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x6472d2
push 2
push 0
push 0
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov esi, ebx
test esi, esi
je 0x6472ae
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [esp + 4]
push eax
push esi
mov eax, edi
call fcn.0040a230
push eax
push ebp
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
push ebp
call sub.kernel32.dll_CloseHandle_1
jmp 0x6472d4
xor ebx, ebx
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6472dc
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x64747a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
test eax, eax
je 0x64730d
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x647319
mov byte [ebp - 0xa], 1
jmp 0x64745c
mov byte [ebp - 0xa], 0
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, ebx
call fcn.0040a5d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x64745c
mov eax, ebx
call fcn.00646efc
mov esi, eax
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
jne 0x6473dc
cmp byte [ebp - 9], 0
je 0x6473a4
lea eax, [ebp - 8]
mov edx, 0x647498
call fcn.00409cac
mov esi, dword [ebp - 8]
test esi, esi
je 0x647387
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.0040a230
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov esi, 3
jmp 0x6473dc
lea eax, [ebp - 4]
mov edx, 0x6474a8
call fcn.00409c10
mov esi, dword [ebp - 4]
test esi, esi
je 0x6473bd
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5d8
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
mov esi, 1
cmp esi, 1
je 0x6473e6
cmp esi, 2
jne 0x64742a
lea eax, [ebp - 4]
mov edx, edi
call fcn.00409c10
cmp esi, 2
jne 0x647402
mov eax, dword [ebp - 4]
call fcn.0040a5d8
call fcn.00644c34
mov esi, dword [ebp - 4]
test esi, esi
je 0x64740e
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5d8
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
jmp 0x647456
lea edx, [ebp - 8]
mov eax, edi
call fcn.0040d5a8
mov esi, dword [ebp - 8]
test esi, esi
je 0x647440
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.0040a230
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x647481
lea eax, [ebp - 8]
call fcn.0040980c
lea eax, [ebp - 4]
call fcn.004097e8
ret
Function at 0x6487a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004098cc
mov eax, dword [ebp - 8]
call fcn.004098cc
xor eax, eax
push ebp
push 0x648911
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004097e8
mov eax, dword [ebp - 8]
test eax, eax
je 0x6487fa
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x64880a
lea eax, [ebp - 8]
mov edx, 0x64892c
call fcn.00409c10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5d8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, 1
jb 0x6488e9
mov eax, ebx
call fcn.00644c0c
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x6488e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x648944
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6488e2
push 0x648984
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00420b84
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00420b84
push dword [ebp - 0x24]
push 0x6489b4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004200cc
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.0040a8cc
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a5d8
push eax
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6488e2
cmp dword [ebp - 0x18], 1
jbe 0x6488e2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040a640
mov eax, esi
call fcn.00406888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x648918
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00409848
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409848
ret
Function at 0x648c10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x648c18
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004098cc
xor eax, eax
push ebp
push 0x648d74
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0064e374
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5d8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, 1
jb 0x648d4c
mov eax, ebx
call fcn.00644c0c
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x648d45
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x648d84
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x648d45
push 0x648dc4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov edx, 4
call fcn.00420b84
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00420b84
push dword [ebp - 0x24]
push 0x648df4
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040a8cc
mov edi, 0x68a454
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [edi + ebx*4]
call fcn.00409c10
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040a844
mov eax, dword [ebp - 0x28]
call fcn.0040a5d8
push eax
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x648d3f
cmp dword [ebp - 0x18], 1
jbe 0x648d3f
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.0040a640
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0064e49c
inc ebx
cmp ebx, 0xa
jne 0x648ce7
mov eax, esi
call fcn.00406888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x648d7b
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00409848
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409848
ret

Function at 0x649020
Capabilities:
Get memory capacity

Disassembly:
push ebx
push esi
add esp, 0xffffffc0
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.00407284
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [esp + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esp, 0x40
pop esi
pop ebx
ret

Function at 0x64a468
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x64a495
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64a4a1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x64a5f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x64a5f9
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x64a7bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d2770]
call fcn.0049c754
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x4d2770]
call fcn.0049c754
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x64a72e
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00428ed0
lea eax, [ebp - 0x1c]
mov ecx, 0x64a7d8
mov edx, dword [ebp - 8]
call fcn.0040a844
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, 0x1ff
call fcn.0064a4ac
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x64a718
inc eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
push dword [ebp - 8]
push 0x64a7f0
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040a8cc
mov eax, dword [ebp - 4]
call fcn.0040a5d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x64a6d1
test al, 0x10
je 0x64a6d1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x64a70e
cmp byte [ebp - 9], 0
je 0x64a6e3
mov eax, dword [ebp - 4]
call fcn.0064a360
test al, al
je 0x64a70e
push 0x80
mov eax, dword [ebp - 4]
call fcn.0040a5d8
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesW
push esi
call sub.kernel32.dll_DeleteFileW
cmp byte [ebp - 0xa], 0
je 0x64a70e
test eax, eax
je 0x64a70e
inc dword [0x68a444]
inc ebx
dec dword [ebp - 0x18]
jne 0x64a688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a735
mov eax, dword [ebp - 0x10]
call fcn.00407bc0
ret
Function at 0x64a7f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64a8ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004097e8
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
xor ebx, ebx
mov ecx, ebx
mov eax, esi
shr eax, cl
test eax, esi
jbe 0x64a883
lea edi, [ebx + 0x41]
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.0040a600
lea eax, [ebp - 0x10]
mov edx, 0x64a8c8
call fcn.0040a7ec
mov eax, dword [ebp - 0x10]
call fcn.0040a5d8
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, dword [ebp - 4]
jne 0x64a883
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.0040a600
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040a7ec
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, 0x1a
jne 0x64a834
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64a8b4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409848
ret
Function at 0x64b760
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x64b7bb
lea eax, [esp + 0xc]
push eax
push 0x64b7c0
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop ebx
ret

Function at 0x64cde4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004098cc
xor eax, eax
push ebp
push 0x64ce8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040a76c
push 0
mov eax, dword [ebp - 8]
call fcn.0040a5d8
push eax
mov eax, dword [ebp - 4]
call fcn.0040a5d8
mov esi, eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040a76c
push ebx
mov eax, dword [ebp - 8]
call fcn.0040a5d8
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x64ce68
mov eax, dword [ebp - 8]
call fcn.0040a5d8
mov edx, eax
mov eax, edi
call fcn.0040a640
jmp 0x64ce72
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00409bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64ce94
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409848
ret

Function at 0x64cfb4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x20
push 2
push 0x68a480
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x64d02a
xor eax, eax
push ebp
push 0x64d023
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x64d00c
cmp dword [ebp - 0xc], 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 0x64d02a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x64d0b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004098cc
lea eax, [ebp - 0x278]
mov edx, dword [0x4195d8]
call fcn.0040aed0
xor eax, eax
push ebp
push 0x64d266
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
test eax, eax
je 0x64d11a
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x64d22a
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 4]
call fcn.00428e88
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 4]
call fcn.00409c10
lea eax, [ebp - 0x284]
mov ecx, 0x64d280
mov edx, dword [ebp - 4]
call fcn.0040a844
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.004212a0
mov edi, eax
xor eax, eax
push ebp
push 0x64d223
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0x64d20a
mov eax, dword [ebp - 0x264]
mov edx, 0x64d290
call fcn.0040a97c
je 0x64d1f5
mov eax, dword [ebp - 0x264]
mov edx, 0x64d2a0
call fcn.0040a97c
je 0x64d1f5
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.0040a844
mov eax, dword [ebp - 8]
call fcn.0040a5d8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x64d1f5
test esi, 0x10
je 0x64d1f5
test bl, bl
je 0x64d1e7
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
jmp 0x64d1f5
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.004212f0
mov edi, eax
test edi, edi
je 0x64d17e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64d22a
lea eax, [ebp - 0x278]
call fcn.00421314
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64d26d
lea eax, [ebp - 0x284]
mov edx, 2
call fcn.00409848
lea eax, [ebp - 0x278]
mov edx, dword [0x4195d8]
call fcn.0040afa8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409848
ret
Function at 0x64d2a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x27d], cl
mov dword [ebp - 0x27c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004098cc
mov eax, dword [ebp + 0xc]
call fcn.004098cc
lea eax, [ebp - 0x278]
mov edx, dword [0x4195d8]
call fcn.0040aed0
xor eax, eax
push ebp
push 0x64d4f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 4]
call fcn.00428e88
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 4]
call fcn.00409c10
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x64d331
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x64d341
lea eax, [ebp + 0xc]
mov edx, 0x64d510
call fcn.00409c10
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
call fcn.0040a844
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.004212a0
mov edi, eax
mov dl, 1
mov eax, dword [0x47a004]
call fcn.0049c754
mov dword [ebp - 0x284], eax
xor eax, eax
push ebp
push 0x64d43f
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0x64d426
mov eax, dword [ebp - 0x264]
mov edx, 0x64d520
call fcn.0040a97c
je 0x64d411
mov eax, dword [ebp - 0x264]
mov edx, 0x64d530
call fcn.0040a97c
je 0x64d411
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.0040a844
mov eax, dword [ebp - 8]
call fcn.0040a5d8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x64d411
test esi, 0x10
jne 0x64d411
mov bl, 1
cmp byte [ebp + 8], 0
je 0x64d3ff
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jle 0x64d3ff
xor ebx, ebx
test bl, bl
je 0x64d411
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.004212f0
mov edi, eax
test edi, edi
je 0x64d392
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64d446
lea eax, [ebp - 0x278]
call fcn.00421314
ret

Function at 0x657368
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x20
pop ebx
ret
Function at 0x65d154
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov byte [ebp - 9], al
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004098cc
mov eax, dword [ebp - 8]
call fcn.004098cc
xor eax, eax
push ebp
push 0x65d2ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x65d19b
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x65d1ab
lea eax, [ebp - 4]
mov edx, 0x65d2c8
call fcn.00409c10
mov eax, dword [ebp - 8]
test eax, eax
je 0x65d1b7
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x65d1c4
lea edx, [ebp - 8]
xor eax, eax
call fcn.00406c4c
xor eax, eax
push ebp
push 0x65d276
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x65d244
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x65d308
call fcn.00421cec
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x65d32c
mov eax, 0x80000001
call fcn.0063dcfc
test bl, bl
jne 0x65d26c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x65d394
call fcn.00421cec
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x65d3b8
mov eax, 0x80000002
call fcn.0063dcfc
jmp 0x65d26c
mov ecx, dword [ebp - 4]
mov edx, 0x65d420
mov eax, 0x80000001
call fcn.0063e168
test bl, bl
jne 0x65d26c
mov ecx, dword [ebp - 4]
mov edx, 0x65d488
mov eax, 0x80000002
call fcn.0063e168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65d2b2
lea eax, [ebp - 0x1c]
call fcn.004097e8
lea eax, [ebp - 0x10]
call fcn.004097e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409848
ret
Function at 0x6614b8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x661567
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040980c
jmp 0x661503
movzx ebx, byte [ebp - 2]
cmp bl, 0xa
je 0x661514
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.00409f18
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0040a00c
push 0
push 1
lea eax, [ebp - 2]
push eax
push edi
call sub.ws2_32.dll_recv
dec eax
je 0x6614e1
mov edx, dword [esi]
mov eax, edx
test eax, eax
je 0x661521
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x661551
mov eax, edx
test eax, eax
je 0x661530
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0xd
jne 0x661551
mov eax, edx
test eax, eax
je 0x661544
sub eax, 4
mov eax, dword [eax]
mov edx, esi
mov ecx, 1
xchg edx, eax
call fcn.0040a2a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66156e
lea eax, [ebp - 8]
call fcn.0040980c
ret