joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401001
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x401095
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401095
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Common_AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x401095
cmp dword [ebp - 0xc], 1
jne 0x401095
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x401099
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, 0x104
mov edi, 0x4046c4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4010e0
push 0x4045c0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x4044bc
push esi
call fcn.00401001
test eax, eax
pop ecx
jne 0x4010dd
push edi
push str._s_system
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 1
pop eax
pop edi
pop esi
ret

Function at 0x40112d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401164
push str.PendingFileRenameOperations
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401166
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x4023a8
call fcn.004021e8
sub esp, 0x48
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push dword [ebp + 0x10]
push eax
push edi
call dword [0x4047d0]
mov esi, eax
push esi
push edi
call dword [0x4047d4]
push esi
push edi
call dword [0x4047d8]
mov ebx, eax
push ebx
call dword [0x4047dc]
mov esi, eax
cmp esi, edi
je 0x40129e
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x4011d3
push 0x100
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp + 0xc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp word [esi + 0xa], di
pop ecx
mov dword [ebp + 0x10], eax
jne 0x401297
movzx eax, word [esi + 0x18]
mov byte [ebp - 0x46], 8
mov byte [ebp - 0x47], 8
lea eax, [eax + esi + 0x1a]
mov byte [ebp - 0x45], 4
mov byte [ebp - 0x44], 2
push edi
push edi
push edi
lea ecx, [ebp - 0x54]
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push eax
call fcn.00401f62
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x404018
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
je 0x401289
push ebx
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp + 0xc]
push 1
push dword [ebp + 0x10]
call esi
add esp, 0x10
cmp dword [ebp + 0x14], edi
je 0x401281
call dword [sym.imp.MSVCRT.dll_rand]
push eax
lea eax, [ebp - 0x18]
push 0x40401c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x18]
push 1
push eax
call esi
add esp, 0x10
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 1
pop eax
jmp 0x4012a0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4012af
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x350]
push esi
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40145e
lea eax, [ebp - 0x454]
push esi
push eax
push 0x404120
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40145e
lea eax, [ebp - 0x24c]
push 0x4045c0
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x24c]
push str._fs8519623
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [ebp - 0x350]
push 0x404020
push eax
call esi
add esp, 0x18
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40145e
lea eax, [ebp - 0x24c]
push 0x404110
push eax
call esi
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
mov esi, 0x100
je 0x4013ca
push ebx
lea eax, [ebp - 0x148]
push dword [ebp - 8]
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
push eax
call edi
add esp, 0x10
mov ebx, eax
test ebx, ebx
jle 0x4013bd
cmp dword [ebp - 4], 4
jl 0x401393
cmp dword [ebp - 4], 0x1e
jg 0x401393
push esi
lea eax, [ebp - 0x148]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x148]
push ebx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 8]
inc dword [ebp - 4]
lea eax, [ebp - 0x148]
push esi
push 1
push eax
call edi
add esp, 0x20
jmp 0x40136f
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor edi, edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x6c0]
push str._c_move___s____s____nul
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x454]
add esp, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x6c0]
push 0x40
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
pop edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
mov dword [ebp - 0x3c], 0x4040f0
mov dword [ebp - 0x44], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40145e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x10]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
pop eax
jmp 0x401460
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401973
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xfffffffffffffffc
push ebx
call edi
add esp, 0xc
test eax, eax
je 0x401996
xor eax, eax
jmp 0x401a0f
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 4
lea eax, [ebp - 4]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 4
jne 0x401992
push eax
lea eax, [ebp - 4]
push 0x404268
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x401992
push 2
push 0xfffffffffffffff8
push ebx
call edi
push ebx
push 4
lea eax, [ebp - 8]
push 1
push eax
call esi
add esp, 0x1c
cmp eax, 4
jne 0x401992
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp eax, dword [ecx]
jge 0x401992
push 2
push 0xfffffffffffffff8
mov dword [ecx], eax
pop ecx
sub ecx, eax
push ecx
push ebx
call edi
push ebx
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call esi
sub eax, dword [ebp + 8]
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a69
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x208], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x30c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x401bd8
lea ecx, [ebp - 0x104]
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
inc edi
lea eax, [ebp - 0x30c]
push edi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x208]
push eax
call fcn.00401a14
add esp, 0x18
test eax, eax
je 0x401b4c
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x104]
push 0x40427c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x18
jmp 0x401b81
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push 0x404278
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x404018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x401bb4
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x401bd8
lea eax, [ebp - 0x104]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
leave
ret

Function at 0x401cc3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [eax], esi
jbe 0x401d45
push ebx
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
mov ebx, 0x80000001
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelMicrosoft
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401d0b
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push 3
push esi
push 0x404288
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d3e
push dword [ebp + 0xc]
push dword [ebp + 8]
push 4
push esi
push str.Company
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
push 1
pop eax
pop edi
pop ebx
jmp 0x401d47
xor eax, eax
pop esi
leave
ret
Function at 0x401d4a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
mov edi, 0x80000001
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelMicrosoft
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401d8b
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push 3
push esi
push 0x404288
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401dbe
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push esi
push str.Compatible
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401dc6
Capabilities:
Create process on windows
Get comspec environment variable
Print debug messages
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push esi
mov esi, 0x104
lea eax, [ebp - 0x244]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401eba
lea eax, [ebp - 0x244]
push esi
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x401eba
lea eax, [ebp - 0x44c]
push esi
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x401eba
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x654]
push str._c_del__s___nul
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44c]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x654]
push 0x40
mov dword [ebp - 0x28], eax
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
mov dword [ebp - 0x30], str.Open
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401eba
push 0x40435c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 4]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
pop eax
jmp 0x401ebc
xor eax, eax
pop esi
leave
ret
Function at 0x89f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x89f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x8c8074
push ecx
mov edi, eax
call fcn.008b3198
mov esi, eax
add esp, 8
test esi, esi
jne 0x89f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008b302e
push esi
call fcn.008b2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8a2850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8a28ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x8cd720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8a28ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008b31e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8a28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8cd720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8a292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.008b4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8a2957
mov word [eax], si
add eax, 2
push eax
call fcn.008b4030
add esp, 4
jmp 0x8a2959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8a28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8a28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8a2ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x8a3080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8a30c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8c8458
push ecx
call fcn.008b31e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008b31e1
add esp, 0x10
jmp 0x8a30d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008b320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008b2dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008a3050
mov eax, dword [0x8cd728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8a313b
push esi
call fcn.008a2fb0
add esp, 4
mov dword [0x8cd728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8a314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008a2ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8a6440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8a64b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8a648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8a6471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8a647e
add edx, ecx
cmp ebx, edx
jb 0x8a648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8a6467
xor ecx, ecx
jmp 0x8a64a2
test eax, eax
jne 0x8a6492
xor ecx, ecx
jmp 0x8a64a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008a63c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8a68f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x8a6921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x8a6946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x8a696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x8a6993
push ecx
push esi
call fcn.008a64c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x8a7c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x8a7c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x8a7c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x8a7c38
add edx, eax
cmp ebx, edx
jb 0x8a7c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x8a7c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x8a7c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x8a7c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8a7cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8a7c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8a7ca8
add edx, ecx
cmp ebx, edx
jb 0x8a7cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8a7c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x8a7f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.008b4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8a7ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x8a7fdd
lea eax, [esp + 0x18]
push eax
jmp 0x8a7fe2
push 0x8cd720
call fcn.008b3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8a7fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8a7f40
push 4
push ecx
push eax
call fcn.008b443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x8a8310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.008b4145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8a83ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x8a838d
lea eax, [esp + 0x18]
push eax
jmp 0x8a8392
push 0x8cd720
call fcn.008b3fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8a8360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8a7f40
push 4
push ecx
push eax
call fcn.008b443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret