joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40489e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 4], esi
call fcn.00409041
pop ecx
push 0x40
mov ebx, eax
lea eax, [ebp - 0x5c]
push esi
push eax
mov dword [ebp - 0x60], esi
call fcn.00408fa9
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.00403d4b
pop ecx
pop ecx
cmp ebx, esi
je 0x404925
push ebx
call fcn.00405b0e
pop ecx
test eax, eax
je 0x404925
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x404925
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
push 1
push dword [ebp - 8]
call fcn.00403d4b
pop ecx
pop ecx
cmp ebx, esi
je 0x40493c
push ebx
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404944
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0
push 0x15
mov ebx, eax
call fcn.00406347
push 0x20a
mov edi, eax
call fcn.00409041
add esp, 0xc
mov esi, eax
cmp bl, 6
jb 0x4049b9
call fcn.00404428
test eax, eax
je 0x4049b9
lea eax, [ebp - 8]
push 0
push eax
call fcn.00403d4b
pop ecx
pop ecx
test edi, edi
je 0x4049ad
test esi, esi
je 0x4049ad
push esi
call fcn.00405b0e
pop ecx
test eax, eax
je 0x4049ad
push edi
push esi
call fcn.00403e9e
pop ecx
pop ecx
mov dword [ebp - 4], eax
push 1
push dword [ebp - 8]
call fcn.00403d4b
pop ecx
pop ecx
test esi, esi
je 0x4049c4
push esi
call fcn.004090a1
pop ecx
push edi
call fcn.004039da
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049d3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x27
mov dword [ebp - 0x18], esi
call fcn.00406347
mov edi, eax
push edi
mov dword [ebp - 0x20], edi
call fcn.004090b5
add esp, 0xc
push 0x20a
lea ebx, [eax + edi + 1]
call fcn.00409041
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0x40
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x8c]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x90], esi
call fcn.00408fa9
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
add esp, 0xc
cmp byte [ebp - 0x14], 6
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jb 0x404b3a
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00403d4b
pop ecx
pop ecx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x404b24
cmp dword [ebp - 4], esi
je 0x404b24
push dword [ebp - 4]
call fcn.00405b0e
pop ecx
test eax, eax
je 0x404b24
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, esi
je 0x404b24
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x404b24
push dword [ebp - 0x1c]
push esi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x404b24
lea ecx, [ebp - 0xc]
push ecx
mov ebx, 0x2000000
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404b24
lea eax, [ebp - 8]
push eax
push 1
push 2
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x44], 0xc
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x404b24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 0x28]
call fcn.00403d4b
pop ecx
pop ecx
cmp dword [ebp - 0x10], esi
je 0x404b3a
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x38], esi
je 0x404b44
push dword [ebp - 0x38]
call edi
cmp dword [ebp - 0x34], esi
je 0x404b4e
push dword [ebp - 0x34]
call edi
cmp dword [ebp - 0xc], esi
je 0x404b58
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], esi
je 0x404b62
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x404b70
push dword [ebp - 4]
call fcn.004090a1
pop ecx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004039b7
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040930f
pop ecx
cmp eax, esi
je 0x404db8
push edi
push esi
push esi
push eax
push 0x404b85
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
cmp edi, esi
je 0x404db7
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x404db0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x404dee
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x404e9f
push esi
mov esi, 0x22c
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.00408fa9
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x404e99
push ebx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.00403711
pop ecx
test eax, eax
js 0x404e84
push dword [ebp - 0x22c]
xor ebx, ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e81
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov ebx, eax
call edi
add dword [ebp - 4], ebx
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x404e49
pop ebx
push dword [ebp - 8]
call edi
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x404ea5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push edi
xor ebx, ebx
call fcn.00403c7a
push ebx
push 0x19
mov edi, eax
call fcn.00406347
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], eax
push 8
mov eax, edi
pop edx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x4c], 0x40a20c
mov dword [ebp - 0x44], str.ELVL
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [esi], ebx
call fcn.00405a46
movzx eax, byte [ebp + 8]
push 8
pop edx
lea edi, [ebp - 0x34]
call fcn.00405a46
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0xc]
call fcn.00405fe7
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x404f4d
push edi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
mov dword [esi], eax
cmp eax, ebx
jne 0x404f39
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi], eax
cmp eax, ebx
je 0x404f60
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x404f62
jmp 0x404f4f
mov edi, ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x404f62
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], ebx
jmp 0x404f62
mov edi, ebx
push dword [ebp - 0xc]
call fcn.004039da
pop ecx
push dword [ebp + 8]
call fcn.004039da
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x404fa9
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x2710
call edi
mov dword [ebp - 0xc], eax
call edi
mov ebx, 0x3e8
jmp 0x405054
mov eax, 0x200
push 0x40
pop ecx
sub eax, esi
mov dword [ebp - 0x11c], ecx
cmp eax, ecx
ja 0x404ff2
mov dword [ebp - 0x11c], eax
push dword [ebp - 0x11c]
mov eax, dword [ebp + 8]
lea eax, [eax + esi*4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408fd7
add esi, dword [ebp - 0x11c]
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00408fd7
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
or dword [ebp - 8], ecx
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
jb 0x404fd8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x18
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.00409041
mov esi, eax
movzx eax, word [edi]
pop ecx
cmp ax, bx
je 0x405928
push 0x20
pop ecx
cmp cx, ax
jne 0x405877
add edi, 2
movzx eax, word [edi]
cmp ax, bx
jne 0x405864
cmp word [edi], bx
je 0x405928
push edi
call fcn.004092e1
mov edi, eax
pop ecx
cmp edi, ebx
je 0x405928
push edi
call fcn.004090c6
pop ecx
lea eax, [edi + eax*2 - 2]
jmp 0x4058b9
movzx ecx, word [eax]
push 0x20
pop edx
cmp dx, cx
je 0x4058b1
push 0x5c
pop edx
cmp dx, cx
jne 0x4058bd
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, edi
ja 0x40589e
cmp esi, ebx
je 0x405921
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, edi
mov dword [esi + 0x14], edi
call fcn.00405376
push ebx
push ebx
push esi
push 0x4056b3
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x405928
mov eax, edi
call fcn.004053e5
push dword [esi + 4]
call fcn.0040861b
push dword [esi + 0x10]
call fcn.004090a1
push esi
call fcn.004090a1
add esp, 0xc
jmp 0x405928
push edi
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d61
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x405eba
push dword [ebp + 8]
call fcn.004090c6
pop ecx
lea ecx, [eax + 2]
mov eax, dword [ebp + 0x14]
cmp eax, ecx
jb 0x405eba
lea eax, [eax + eax + 2]
push eax
call fcn.00409041
mov esi, eax
pop ecx
test esi, esi
je 0x405eba
push dword [ebp + 8]
push esi
call fcn.0040927d
push 0x40a414
push esi
call fcn.004092b4
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x405eb3
mov edi, dword [ebp + 0x18]
cmp word [ebp - 0x230], 0x2e
jne 0x405e0b
cmp word [ebp - 0x22e], 0
je 0x405e92
cmp word [ebp - 0x22e], 0x2e
jne 0x405e0b
cmp word [ebp - 0x22c], 0
je 0x405e92
push dword [ebp + 8]
call fcn.004090c6
mov ebx, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004090c6
lea eax, [ebx + eax + 1]
pop ecx
cmp dword [ebp + 0x14], eax
jb 0x405e92
push dword [ebp + 8]
push esi
call fcn.0040927d
push 0x40a208
push esi
call fcn.004092b4
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004092b4
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push eax
push esi
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0x28
test eax, eax
je 0x405e92
js 0x405eaa
test edi, edi
je 0x405e8f
test byte [ebp - 0x25c], 0x10
je 0x405e8f
lea eax, [edi - 1]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00405d61
add esp, 0x14
add dword [ebp - 8], eax
jmp 0x405e92
inc dword [ebp - 8]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x405ddb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call fcn.004090a1
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4086b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 0x24]
xor edi, edi
push edi
push dword [esi + 0x20]
mov dword [ebp - 0xc], edi
call fcn.00408fa9
add esp, 0xc
push 2
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
call edi
test eax, eax
je 0x40877b
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call edi
test eax, eax
je 0x40877b
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
xor ecx, ecx
cmp ebx, ecx
jb 0x408757
jbe 0x408752
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi + 0x20]
push dword [ebp + 8]
call edi
test eax, eax
je 0x40877b
mov eax, dword [esi + 0x24]
cmp dword [ebp - 8], eax
jb 0x40877b
xor ecx, ecx
sub dword [ebp - 0x1c], eax
sbb ebx, ecx
cmp ebx, ecx
ja 0x40872a
jb 0x408757
cmp dword [ebp - 0x1c], eax
ja 0x40872a
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push dword [esi + 0x20]
push dword [ebp + 8]
call edi
test eax, eax
je 0x40877b
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jb 0x40877b
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop ebx
leave
ret
Function at 0x408af1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 3
pop esi
mov edi, 0x40000
push edi
push 0
push dword [ebp + 0xc]
call fcn.00408fa9
add esp, 0xc
mov ecx, dword [ebx + esi*8 - 4]
push 0
dec esi
mov eax, dword [ebx + esi*8]
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x408b55
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x408b55
cmp dword [ebp - 4], edi
jne 0x408b55
test esi, esi
jne 0x408b0f
or esi, 0xffffffff
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
leave
ret

Function at 0x408b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 2
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x408c3b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
ja 0x408ba6
cmp ecx, 0xc0000
jb 0x408c3b
push esi
push 3
push eax
push ecx
call fcn.00409530
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
xor ebx, ebx
cmp ebx, 2
jne 0x408bce
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add esi, 0xfffc0000
adc edi, 0xffffffff
mov eax, dword [ebp + 0xc]
push 0
mov dword [eax + ebx*8], esi
mov dword [eax + ebx*8 + 4], edi
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x408c31
cmp dword [ebp - 0x14], esi
jne 0x408c31
cmp dword [ebp - 0x10], edi
jne 0x408c31
push 0
lea eax, [ebp - 8]
push eax
push 0x40000
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x408c31
mov eax, 0x40000
cmp dword [ebp - 8], eax
jne 0x408c31
add esi, dword [ebp - 0x24]
adc edi, dword [ebp - 0x20]
add dword [ebp + 0x10], eax
inc ebx
cmp ebx, 3
jb 0x408bba
xor eax, eax
cmp ebx, 3
sete al
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x408ebe
Capabilities:
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push closesocket
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fa2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x408f96
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
or eax, ecx
mov dword [ebp - 0x14], ecx
je 0x408fa2
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x408fa2
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov dword [ebp - 8], eax
and dword [ebp - 8], 1
je 0x408f3e
and eax, 0xfffffffe
push eax
push edi
call esi
test byte [ebp + 0x14], 1
jne 0x408f67
cmp dword [ebp - 0x14], 0
ja 0x408f53
cmp dword [ebp - 0x18], 0x180000
jb 0x408f67
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408c42
jmp 0x408f79
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408782
add esp, 0x10
cmp dword [ebp - 8], 0
mov dword [ebp - 4], eax
je 0x408fa2
push dword [ebp - 0xc]
test eax, eax
je 0x408f93
push dword [ebp + 0x10]
call esi
jmp 0x408fa2
push edi
call esi
cmp ebx, 0xffffffff
je 0x408fa2
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x4ced02
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e748
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x464770]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov eax, dword [0x464770]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0xc], 0x454e14
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push eax
push 1
push 2
mov dword [esp + 0x4c], eax
call dword [0x44c58c]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x48]
mov edx, esi
push eax
lea esi, [esp + 0x10]
call fcn.004ce832
test eax, eax
je 0x4cedae
push 0x234
call fcn.004d82e3
add esp, 4
test eax, eax
je 0x4cedae
mov ebx, esi
mov esi, eax
call fcn.004ce4d2
jmp 0x4cedb0
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f4da5
add esp, 0x38
ret 8
Function at 0x4d4a02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x4d4a13
xor eax, eax
jmp 0x4d4bfd
mov eax, 1
test eax, eax
je 0x4d4a5f
mov dword [ebp - 4], 1
movzx ecx, byte [ebp - 4]
test ecx, ecx
je 0x4d4a46
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d4c12
add esp, 0xc
jmp 0x4d4bfd
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d5012
add esp, 0xc
jmp 0x4d4bfd
mov edx, dword [ebp + 8]
xor edx, 0xffffffff
mov dword [ebp + 8], edx
cmp dword [ebp + 0x10], 8
jb 0x4d4bbe
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44d218]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44d218]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44d218]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44d218]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44d218]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44d218]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44d218]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44d218]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 8
mov dword [ebp + 0x10], edx
jmp 0x4d4a68
cmp dword [ebp + 0x10], 0
je 0x4d4bf7
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44d218]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
jne 0x4d4bc4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc