joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c6ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
xor ebx, ebx
push edi
push 0x206
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x66]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x68], bx
call fcn.10085bc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov edi, 0x20019
push edi
push ebx
push str.htmlfile
push SysReAllocStringLen
call esi
test eax, eax
je 0x1001c73e
xor eax, eax
jmp 0x1001c7ba
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
push str.shell
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x1001c73a
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push str.opencommand
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x1001c73a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x101ebf0c
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x6c]
call esi
lea eax, [ebp - 0x68]
push eax
call fcn.100867a3
push dword [ebp - 0x7c]
push eax
call fcn.100885cc
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0x1a4
leave
ret

Function at 0x1001c7f7
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10085bc0
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.10085bc0
push edi
lea eax, [ebp - 0x28]
push 0x10187268
push eax
call fcn.10004df5
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001c893
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.1008545e
add ebp, 0x7ac
leave
ret
Function at 0x1001cb7e
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1a0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x80], eax
and word [ebp - 0x78], 0
push 0x206
lea eax, [ebp - 0x76]
push 0
push eax
call fcn.10085bc0
add esp, 0xc
cmp dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
jne 0x1001cbed
push ebx
push str._s.bak
push eax
call fcn.10004df5
add esp, 0xc
jmp 0x1001cbff
push dword [ebp - 0x7c]
push ebx
push str._s.bak_d
push eax
call fcn.10004df5
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001cc13
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.1008925d
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
call edi
push 0
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
push 0
lea eax, [ebp - 0x78]
push eax
jne 0x1001cc4d
call esi
cmp dword [ebp - 0x7c], 0xa
jge 0x1001cc58
inc dword [ebp - 0x7c]
jmp 0x1001cbbb
call esi
push 5
push 0
push dword [ebp - 0x80]
call esi
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0x194
leave
ret
Function at 0x1001ccc4
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
mov esi, dword [ebp + 0x9c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001cdba
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001cd21
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.100621c1
and dword [ebp - 0x80], 0
pop ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
pop ecx
mov esi, str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xcb
xor edi, edi
lea eax, [ebp - 0x3b]
push edi
push eax
call fcn.10085bc0
lea eax, [ebp - 0x74]
push eax
call fcn.10084e70
add esp, 0x10
cmp ebx, edi
jle 0x1001cda7
mov ecx, dword [ebp - 0x78]
add ecx, edi
mov dl, byte [ecx]
cmp dl, byte [ebp - 0x74]
jne 0x1001cda2
xor esi, esi
test eax, eax
mov dword [ebp - 0x7c], esi
jle 0x1001cda2
mov dl, byte [ecx + esi]
cmp dl, byte [ebp + esi - 0x74]
jne 0x1001cda2
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], eax
je 0x1001cdd0
inc esi
cmp esi, eax
jl 0x1001cd8c
inc edi
cmp edi, ebx
jl 0x1001cd77
cmp dword [ebp - 0x78], 0
je 0x1001cdb6
push dword [ebp - 0x78]
call fcn.100621bc
pop ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
pop esi
call fcn.1008545e
add ebp, 0x94
leave
ret
cmp dword [ebp - 0x78], 0
je 0x1001cddf
push dword [ebp - 0x78]
call fcn.100621bc
pop ecx
xor eax, eax
inc eax
jmp 0x1001cdb8

Function at 0x1001ce33
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push dword [esp + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1001ce44
xor eax, eax
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1001ce56
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1001ce41
push esi
push dword [esp + 0xc]
call fcn.10085b54
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x1001ce81
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push eax
call fcn.100860cd
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x1001ceb2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1588]
mov eax, 0x1608
call fcn.100860f0
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x1584], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1590]
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x137e]
push ebx
push eax
mov word [ebp + 0x137c], bx
call fcn.10085bc0
push edi
lea eax, [ebp + 0x137c]
push 0x10187268
push eax
call fcn.10004df5
lea eax, [ebp + 0x137c]
push eax
call fcn.10085b54
lea ecx, [eax - 1]
add esp, 0x1c
test ecx, ecx
jle 0x1001cf31
lea eax, [ebp + eax*2 + 0x137c]
cmp word [eax - 2], 0x5c
je 0x1001cf31
mov word [eax], 0x5c
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1d4]
push 0x1018a8f0
push eax
call fcn.10004df5
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x1001d00f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1001d00f
cmp word [ebp - 0x50], 0x2e
je 0x1001cf69
cmp word [ebp - 0x4e], bx
je 0x1001cf69
cmp word [ebp - 0x4e], 0x2e
jne 0x1001cf98
cmp word [ebp - 0x4c], bx
je 0x1001cf69
test byte [ebp - 0x7c], 0x10
je 0x1001cfde
push esi
lea eax, [ebp + 0x1176]
push ebx
push eax
mov word [ebp + 0x1174], bx
call fcn.10085bc0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1174]
push 0x1018a0a8
push eax
call fcn.10004df5
lea eax, [ebp + 0x1174]
push eax
call fcn.1001ceb2
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x9a4]
push 0x1018725c
push eax
call fcn.10004df5
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001cf69
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x1584]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0x1588
leave
ret

Function at 0x1001d040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.10085bc0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x1001d0c6
cmp dword [ebp - 0x11c], 6
jb 0x1001d0c6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.ChangeWindowMessageFilter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001d0bf
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
sete cl
inc ecx
push ecx
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.1008545e
leave
ret
Function at 0x1001d0d5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001d18f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x1001d133
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001d18e
push esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call ebx
test eax, eax
je 0x1001d159
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x1001d18c
push dword [ebp + 0x14]
call fcn.10085b54
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1001e2e0
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x4c
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push 0x44
mov eax, 0x1017c932
call fcn.1008546d
mov eax, dword [ebp + 0x58]
mov edi, dword [ebp + 0x5c]
push 0x44
pop esi
push esi
mov dword [ebp + 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.10085bc0
push 0x10
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x50], esi
call fcn.10085bc0
add esp, 0x18
push 7
pop esi
push ebx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x48], esi
call fcn.10001b40
push ebx
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x2c], esi
call fcn.10001b40
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x1001e358
push edi
lea ecx, [ebp + 0x14]
call fcn.10003610
cmp dword [ebp + 0x28], ebx
lea ecx, [ebp + 0x30]
jne 0x1001e36a
push dword [ebp + 0x10]
call fcn.10003610
jmp 0x1001e39b
push 0x10189190
call fcn.10003610
push dword [ebp + 0x10]
lea ecx, [ebp + 0x30]
call fcn.10003640
push 0x10189240
lea ecx, [ebp + 0x30]
call fcn.10003640
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x30]
call fcn.10003be0
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x1001e3a7
lea eax, [ebp + 0x34]
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push ebx
push ebx
push ebx
xor edi, edi
inc edi
push edi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001e3f9
xor esi, esi
push ebx
push edi
lea ecx, [ebp + 0x14]
call fcn.100017c0
push ebx
push edi
lea ecx, [ebp + 0x30]
call fcn.100017c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x50
leave
ret
cmp byte [ebp + 0x60], bl
je 0x1001e412
mov eax, dword [ebp + 0x64]
cmp eax, ebx
jg 0x1001e408
or eax, 0xffffffff
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
mov esi, edi
jmp 0x1001e3c6
Function at 0x1001e426
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x1017c967
call fcn.100854d6
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x1001e446
xor eax, eax
call fcn.10085559
ret
push eax
lea ecx, [ebp - 0x48]
call fcn.100015f0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], ebx
call fcn.1001de88
mov dword [esp], 0x228
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], ebx
call fcn.10085bc0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001e498
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.100017c0
mov eax, esi
jmp 0x1001e440
lea eax, [ebp - 0x274]
push eax
push esi
mov dword [ebp - 0x274], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1001e4f9
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100015f0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.1001de88
pop ecx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100075ec
test eax, eax
je 0x1001e506
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.100017c0
lea eax, [ebp - 0x274]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001e4b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001e487
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x26c]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100017c0
jmp 0x1001e489
Function at 0x1001e8d9
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x324
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x324], eax
push 0x24
mov eax, 0x1017cb28
call fcn.1008546d
mov edi, dword [ebp + 0x330]
xor esi, esi
push 0x118
lea eax, [ebp + 4]
push esi
mov dword [ebp - 0x28], esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], edi
mov dword [ebp], 0x11c
call fcn.10085bc0
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x101ebf0c
mov ecx, edi
call fcn.100015f0
mov eax, dword [ebp + 4]
mov dword [ebp - 0x1c], eax
movzx eax, byte [ebp + 0x11a]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push str.ntdll.dll
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x1001e9a9
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1001e9a2
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
and dword [ebp - 0x20], 0xffff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1c], 5
jne 0x1001e9ce
cmp dword [ebp - 0x10], esi
jbe 0x1001ea49
cmp dword [ebp - 0x10], 1
mov ecx, edi
jne 0x1001e9c7
push str.WindowsXP
jmp 0x1001ea44
push str.WindowsServer2003
jmp 0x1001ea44
cmp dword [ebp - 0x1c], 6
jne 0x1001ea49
mov eax, dword [ebp - 0x10]
sub eax, esi
je 0x1001ea30
dec eax
je 0x1001ea29
dec eax
jne 0x1001ea49
mov eax, dword [ebp - 0x24]
cmp eax, 0x1ebb
jne 0x1001e9f2
push str.Windows8
jmp 0x1001ea42
lea ecx, [eax - 0x1ee6]
cmp ecx, 0x25
jbe 0x1001e9eb
cmp eax, 0x1f13
je 0x1001e9eb
cmp dword [ebp - 0x18], 0xa
jne 0x1001ea16
cmp dword [ebp - 0x14], esi
jne 0x1001ea49
push str.Windows10
jmp 0x1001ea42
cmp dword [ebp - 0x18], 6
jne 0x1001ea49
cmp dword [ebp - 0x14], 3
jne 0x1001ea49
push str.Windows8.1
jmp 0x1001ea42
push str.Windows7
jmp 0x1001ea42
cmp dword [ebp - 0x2c], 1
jne 0x1001ea3d
push str.WindowsVista
jmp 0x1001ea42
push str.WindowsServer2008
mov ecx, edi
call fcn.10003610
push 0x101ebf0c
mov ecx, edi
call fcn.100059c8
test eax, eax
jne 0x1001ea9d
push 0x206
lea eax, [ebp + 0x11e]
push esi
push eax
mov word [ebp + 0x11c], si
call fcn.10085bc0
push dword [ebp - 0x24]
lea eax, [ebp + 0x11c]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push str.Windows_d._d._d
push eax
call fcn.10004df5
add esp, 0x20
lea eax, [ebp + 0x11c]
push eax
mov ecx, edi
call fcn.10003610
cmp dword [ebp + 0x334], esi
je 0x1001eab0
lea eax, [ebp + 0x14]
push eax
mov ecx, edi
call fcn.10003640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x324]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x328
leave
ret
Function at 0x1001ee10
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x20
mov eax, 0x1017cb8b
call fcn.1008546d
mov eax, dword [ebp + 0x238]
mov ebx, dword [ebp + 0x234]
mov edi, dword [ebp + 0x230]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 0x20], esi
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x1001ee78
push 0x101ebf0c
mov ecx, edi
call fcn.100015f0
mov eax, edi
jmp 0x1001ef67
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100621c1
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x28]
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, esi
jne 0x1001eeb8
push edi
call fcn.100621bc
mov ecx, dword [ebp - 0x10]
mov dword [esp], 0x101ebf0c
call fcn.100015f0
jmp 0x1001ef64
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call sub.VERSION.dll_VerQueryValueW
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x101ebeec
push edi
mov dword [ebp - 0x20], esi
call sub.VERSION.dll_VerQueryValueW
push 0x206
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.10085bc0
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], esi
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp + 0x1c]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.1001d2f5
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x14], esi
jne 0x1001ef3f
push edi
call fcn.100621bc
jmp 0x1001eea4
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.100015f0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.100035e0
push esi
push 1
lea ecx, [ebp]
call fcn.100017c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x228
leave
ret
Function at 0x1001eff6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x1c
mov eax, 0x1017cbbb
call fcn.1008546d
mov eax, dword [ebp + 0x828]
mov ebx, dword [ebp + 0x82c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x830]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x834]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x838]
xor esi, esi
push eax
lea ecx, [ebp]
mov dword [ebp - 0x20], esi
call fcn.100015f0
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001f08b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.100035e0
jmp 0x1001f13e
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push ebx
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call ebx
test eax, eax
je 0x1001f0b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001f07a
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call ebx
test eax, eax
je 0x1001f0d8
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
jmp 0x1001f07a
push 0x7fe
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call fcn.10085bc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 0x400
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp + 0x1c]
push eax
call fcn.10085b54
test eax, eax
pop ecx
mov ecx, dword [ebp - 0x10]
je 0x1001f07d
lea eax, [ebp + 0x1c]
push eax
call fcn.100015f0
push esi
push 1
lea ecx, [ebp]
call fcn.100017c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x820
leave
ret