joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddfc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0x80004005
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 8], 0
xor eax, eax
mov dword [ebp - 7], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 8], 0
je 0x4de017
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4de021
jmp 0x4de144
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4de050
jmp 0x4de144
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x4de06f
jmp 0x4de144
push 0
lea edx, [ebp - 0x18]
push edx
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4de098
jmp 0x4de144
lea edx, [ebp - 8]
push edx
call fcn.004ddee0
add esp, 4
test eax, eax
jne 0x4de0b2
jmp 0x4de144
mov eax, dword [ebp - 0x10]
sub eax, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4de0d7
jmp 0x4de144
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4de114
jmp 0x4de144
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004ddf10
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4de144
cmp dword [ebp - 0x20], 0
je 0x4de144
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0xffffffff
je 0x4de15b
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x4df4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0050d9a0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004043a0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406750
mov byte [ebp - 4], 1
push str.data_version.ini
lea ecx, [ebp - 0x10]
call fcn.00407250
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4df579
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404380
push str.ressrcchs_version.ini
lea ecx, [ebp - 0x10]
call fcn.00407250
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406750
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4df5c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52558a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0050d9a0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004043a0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406750
mov byte [ebp - 4], 1
push 0x538808
lea ecx, [ebp - 0x10]
call fcn.00407250
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4df649
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404380
push str.ressrcchsuplive.svr
lea ecx, [ebp - 0x10]
call fcn.00407250
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406750
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e0570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4e05b4
jmp 0x4e05ef
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e05e4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x4e05e8
jmp 0x4e05ef
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4e05ff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e1020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524ef7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov dword [ebp - 4], 0
push 1
push 0x23
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e112f
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e10bd
jmp 0x4e11b0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407020
push 1
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407530
mov dword [ebp - 0x234], eax
push 0x5389c0
mov edx, dword [ebp - 0x234]
push edx
call fcn.00407700
add esp, 8
mov byte [ebp - 0x21d], al
lea ecx, [ebp - 0x224]
call fcn.004070b0
movzx eax, byte [ebp - 0x21d]
test eax, eax
je 0x4e1120
push 0x5389c4
lea ecx, [ebp - 0x14]
call fcn.00407250
push 0x5389c8
lea ecx, [ebp - 0x14]
call fcn.00407250
jmp 0x4e1192
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407020
push 1
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00407530
mov dword [ebp - 0x238], eax
push 0x538a00
mov eax, dword [ebp - 0x238]
push eax
call fcn.00407700
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.004070b0
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x4e1192
push 0x538a04
lea ecx, [ebp - 0x14]
call fcn.00407250
push 0x538a08
lea ecx, [ebp - 0x14]
call fcn.00407250
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call fcn.0050d500
add esp, 4
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x230]
or eax, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e1a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e1aaf
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x4e1ab1
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4e1ac0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fd68
push 0x5236a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4e1b3e
jmp 0x4e1b9c
lea eax, [ebp - 0x38]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4e1b5a
jmp 0x4e1b9c
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 2
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4e1b95
jmp 0x4e1b9c
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004e1baa
jmp 0x4e1bc2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1c40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4e1d36
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x4e1c7a
jmp 0x4e1d36
push str.EnumProcessModules
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.EnumProcesses
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push str.GetModuleBaseNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push str.GetModuleFileNameExW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4e1d26
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x4e1d26
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x4e1d26
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4e1d26
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x4e1d26
mov dword [ebp - 8], 1
jmp 0x4e1d2d
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4e2f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526a4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.KSysProcessMonitor.0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], vtable.KSysProcessMonitor.1.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0046ecc0
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xc
push edx
lea ecx, [ebp - 0x14]
call fcn.00473380
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x24
call fcn.0046f440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00459fb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x30
call fcn.004e2800
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x24
call fcn.0046ef60
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.00473a00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x4e2fd4
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x4e2fdb
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
call fcn.0046ec60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e3000
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4e3040
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e3079
xor eax, eax
jmp 0x4e30a2
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4e3095
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4e30f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4e3131
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a16d1
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 2
push 1
push 0x538dfc
call fcn.004a16d1
add esp, 0x10
mov esp, ebp
pop ebp
ret 8
Function at 0x4e3140
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x4e319e
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
je 0x4e3171
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xea60
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x102
jne 0x4e319e
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x4e31be
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x4e31de
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov esp, ebp
pop ebp
ret

Function at 0x4e32f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5247e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004070d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0046d5f0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e3960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
call fcn.004e31f0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x14
call fcn.00407020
mov ecx, dword [ebp - 0x28]
call fcn.004e3380
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x24], 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 1
push 1
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
je 0x4e3a2f
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0xc], 0
jne 0x4e3a33
xor eax, eax
jmp 0x4e3a62
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
push 0x4e3940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x10], 0
jne 0x4e3a5d
xor eax, eax
jmp 0x4e3a62
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4e3a70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4e3a8c
mov eax, dword [ebp - 4]
jmp 0x4e3b67
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4e3b42
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538e88]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538e88]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538e88]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538e88]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538e88]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538e88]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538e88]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x538e88]
dec ebp
jne 0x4e3aac
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4e3b5e
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x538e88]
dec ecx
jne 0x4e3b4c
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e4120
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4e4151
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e4151
xor al, al
jmp 0x4e4170
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.004b30f0
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e4230
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.00406370
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4e4250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x55f7e8]
jbe 0x4e426d
mov ecx, dword [0x55f7e8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00406370
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e42e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.00406370
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e4550
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4e4569
mov al, 1
jmp 0x4e456b
xor al, al
pop ebp
ret

Function at 0x4e4570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004e4550
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4e458c
xor al, al
jmp 0x4e45a0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4e459e
mov al, 1
jmp 0x4e45a0
xor al, al
pop ebp
ret

Function at 0x4e4640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x105
mov ecx, dword [ebp + 8]
call fcn.0045fed0
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0046d530
cmp dword [ebp - 4], 0
jbe 0x4e4682
cmp dword [ebp - 4], 0x104
ja 0x4e4682
mov dword [ebp - 8], 1
jmp 0x4e4689
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4e46e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e472c
jmp 0x4e4752
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jne 0x4e4742
jmp 0x4e474b
mov edx, 1
test edx, edx
jne 0x4e4707
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret