joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100237e2
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
cmp esi, ebx
je 0x100237ff
cmp dword [ebp + 0x18], ebx
je 0x100237ff
mov eax, dword [esi]
mov dword [ebp - 4], eax
jmp 0x10023802
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
call fcn.1002310d
cmp eax, ebx
pop ecx
jge 0x1002381f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x10023949
cmp dword [ebp + 0x18], ebx
je 0x10023830
cmp esi, ebx
jne 0x10023830
push 0x57
pop ebx
jmp 0x10023938
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esi, 0xc
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x10023866
push 0xe
pop ebx
jmp 0x10023937
lea eax, [ebp + 8]
push eax
push esi
push edi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call fcn.10028e5d
mov esi, eax
add esp, 0x18
cmp esi, 0x80000005
jne 0x10023899
and dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x18]
neg ebx
sbb ebx, ebx
and ebx, 0xea
jmp 0x100238b9
test esi, esi
jge 0x100238b9
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100238b9
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100238c5
mov ecx, dword [edi + 4]
mov dword [eax], ecx
test esi, esi
jl 0x100238ea
cmp dword [ebp + 0x18], 0
je 0x100238ea
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 4]
jb 0x100238da
mov eax, dword [ebp - 4]
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x18]
call fcn.10033df0
add esp, 0xc
mov eax, dword [edi + 4]
cmp eax, 1
je 0x100238fc
cmp eax, 7
je 0x100238fc
cmp eax, 2
jne 0x10023913
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10023913
mov eax, dword [edi + 8]
cmp dword [ebp - 4], eax
jbe 0x10023913
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10023922
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
mov dword [eax], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
test byte [ebp - 8], 1
je 0x10023947
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
pop esi
pop ebx
leave
ret 0x18
Function at 0x10023de9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x1c]
push edi
test esi, esi
je 0x10023e01
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100237e2
mov dword [ebp - 8], eax
test eax, eax
je 0x10023e2d
cmp eax, 0xea
jne 0x10023f09
push ebx
mov ebx, dword [ebp + 0x18]
test esi, esi
je 0x10023ee3
cmp ebx, 2
jne 0x10023ef0
test edi, edi
je 0x10023e9a
cmp eax, 0xea
je 0x10023e9a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
shr eax, 1
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 0x1c]
cmp eax, dword [ecx]
jbe 0x10023e89
mov dword [ebp - 8], 0xea
mov edi, esi
cmp esi, eax
ja 0x10023e91
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10023eeb
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], 0
push eax
push 0x40
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp + 0x18]
push eax
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100237e2
push 1
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, dword [ebp + 0x18]
cmp edi, eax
ja 0x10023eda
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10023ee6
mov edi, dword [ebp - 4]
cmp ebx, 2
jne 0x10023ef3
xor ebx, ebx
inc ebx
jmp 0x10023ef3
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10023efc
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
pop ebx
test eax, eax
je 0x10023f06
mov dword [eax], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x18
Function at 0x10024aaa
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.100274dd
pop ecx
pop ecx
test eax, eax
je 0x10024c21
cmp dword [ebp - 4], esi
je 0x10024bf2
mov ebx, dword [ebp - 4]
jmp 0x10024bf2
cmp word [ebp - 0x14], 0xe
mov eax, dword [ebp - 0x10]
mov edi, eax
jb 0x10024c50
cmp word [eax + 0xa], 0x3a
jne 0x10024c50
cmp word [eax + 0xc], 0x5c
jne 0x10024c50
push 4
push str.___
push eax
call fcn.10035d20
add esp, 0xc
test eax, eax
jne 0x10024c50
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.1002979a
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x10024c2b
push ebx
call dword [sym.imp.ntdll.dll_RtlIsDosDeviceName_U]
test eax, eax
jne 0x10024c42
cmp edi, 0xc0000033
jne 0x10024bc7
cmp dword [ebp - 0xc], esi
jne 0x10024c47
push 4
push 0x100509fc
push ebx
call fcn.10033855
add esp, 0xc
test eax, eax
jne 0x10024c47
push 7
push str._UNC
push ebx
call fcn.10033855
add esp, 0xc
test eax, eax
je 0x10024c47
add ebx, 8
jmp 0x10024beb
cmp edi, 0xc000003a
jne 0x10024c47
cmp dword [ebp - 0xc], esi
jne 0x10024c47
lea eax, [ebp - 8]
push eax
push ebx
call fcn.10027644
pop ecx
pop ecx
test eax, eax
je 0x10024c47
mov ebx, dword [ebp - 8]
cmp ebx, esi
je 0x10024c47
mov dword [ebp - 0xc], 1
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x10024ae6
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
jmp 0x10024c24
push 0x20
pop esi
jmp 0x10024c6f
push edi
call fcn.1002713c
pop ecx
jmp 0x10024c6c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
pop ecx
pop ecx
mov eax, esi
jmp 0x10024c24
Function at 0x10024c85
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.100274dd
pop ecx
pop ecx
test eax, eax
je 0x10024e7d
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x10024cb9
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 1
jge 0x10024e63
cmp dword [ebp + 0xc], esi
jl 0x10024e63
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x10024de7
cmp word [ebp - 0x14], 0xe
mov eax, dword [ebp - 0x10]
mov edi, eax
jb 0x10024e31
cmp word [eax + 0xa], 0x3a
jne 0x10024e31
cmp word [eax + 0xc], 0x5c
jne 0x10024e31
push 4
push str.___
push eax
call fcn.10035d20
add esp, 0xc
test eax, eax
jne 0x10024e31
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.1002985f
pop ecx
pop ecx
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, esi
jge 0x10024deb
cmp ebx, 0xc0000033
jne 0x10024db2
cmp dword [ebp - 0xc], esi
jne 0x10024e28
push 4
push 0x100509fc
push dword [ebp + 8]
call fcn.10033855
add esp, 0xc
test eax, eax
jne 0x10024e28
push 7
push str._UNC
push dword [ebp + 8]
call fcn.10033855
add esp, 0xc
test eax, eax
je 0x10024e28
add dword [ebp + 8], 8
jmp 0x10024ddb
cmp ebx, 0xc000003a
jne 0x10024e28
cmp dword [ebp - 0xc], esi
jne 0x10024e28
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10027644
pop ecx
pop ecx
test eax, eax
je 0x10024e28
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10024e28
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], 1
jmp 0x10024cc3
push 3
jmp 0x10024e65
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x64]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x3c]
xor esi, esi
mov dword [eax + 0x20], ecx
inc esi
jmp 0x10024e4d
push ebx
call fcn.1002713c
pop ecx
jmp 0x10024e4d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.1002757a
push dword [ebp - 8]
call fcn.1002757a
pop ecx
pop ecx
mov eax, esi
jmp 0x10024e7f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.1002757a
push dword [ebp - 8]
call fcn.1002757a
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10025bef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
movzx esi, word [ebp + 8]
push edi
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push str._c:_
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push 4
push eax
xor ebx, ebx
call fcn.1000bb4b
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x10025cb4
dec eax
jne 0x10025cb7
push esi
push str.__c:
lea eax, [ebp - 0x1c]
push 7
push eax
call fcn.1000bb4b
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x10025cb7
mov edi, 0x227
push edi
call fcn.1003220e
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10025cb7
push esi
push dword [ebp - 0x20]
mov dword [esi + 4], edi
call fcn.100246d6
pop ecx
pop ecx
test eax, eax
je 0x10025ca2
cmp dword [esi + 0x1c], 7
jne 0x10025ca2
inc ebx
push esi
call fcn.10032a5e
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10025cb7
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10032a69
leave
ret
Function at 0x100268d8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.100274dd
pop ecx
pop ecx
test eax, eax
je 0x10026a93
cmp dword [ebp - 4], ebx
je 0x1002690d
mov esi, dword [ebp - 4]
push edi
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x10026a47
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp word [ebp - 0x1c], 0xe
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
jb 0x10026a66
cmp word [eax + 0xa], 0x3a
jne 0x10026a66
cmp word [eax + 0xc], 0x5c
jne 0x10026a66
push 4
push str.___
push eax
call fcn.10035d20
add esp, 0xc
test eax, eax
jne 0x10026a66
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
push eax
call fcn.10025bef
pop ecx
test eax, eax
jne 0x10026a4b
lea eax, [ebp - 0x1c]
push eax
call fcn.100294ce
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jge 0x10026a9c
cmp eax, 0xc0009999
je 0x10026ab5
cmp eax, 0xc0000033
jne 0x100269f8
cmp dword [ebp - 0xc], ebx
jne 0x10026abc
push 4
push 0x100509fc
push esi
call fcn.10033855
add esp, 0xc
test eax, eax
jne 0x10026abc
push 7
push str._UNC
push esi
call fcn.10033855
add esp, 0xc
test eax, eax
je 0x10026abc
add esi, 8
jmp 0x10026a2b
cmp eax, 0xc000003a
jne 0x10026abc
cmp dword [ebp - 0xc], ebx
jne 0x10026abc
lea eax, [ebp - 8]
push eax
push esi
call fcn.10027644
pop ecx
pop ecx
test eax, eax
je 0x10026abc
mov esi, dword [ebp - 8]
cmp esi, ebx
je 0x10026abc
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x10026929
push 3
jmp 0x10026a7a
push ebx
add esi, 8
push 1
push esi
call fcn.100264f3
add esp, 0xc
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
mov dword [ebp - 0x14], 1
jmp 0x10026a90
push 0xc000000d
jmp 0x10026abf
push dword [ebp - 0x10]
call fcn.1002713c
push dword [ebp - 8]
call fcn.1002757a
push dword [ebp - 4]
call fcn.1002757a
add esp, 0xc
jmp 0x10026a92
Function at 0x1002759a
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
and dword [ebp - 0x80], 0
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x100275ce
xor eax, eax
jmp 0x1002762e
push 0x228
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x22c
call fcn.10035680
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1002762b
push edi
mov edi, dword [ebp + 0x1bc]
cmp dword [ebp - 0x74], edi
je 0x10027612
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100275fd
jmp 0x1002762a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x80], eax
pop edi
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop esi
call fcn.10032a69
add ebp, 0x1b4
leave
ret

Function at 0x10028562
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x40
mov eax, 0x1004d01e
call fcn.10035b95
mov esi, ecx
xor edi, edi
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
call fcn.10002648
push str.0001
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.10002648
push 0xffffffffffffffff
push edi
add esi, 0x48
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10002a3c
push str.Instances
lea ecx, [ebp - 0x2c]
call fcn.1000266a
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x100285be
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100285ca
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add edx, edx
push edx
push ecx
xor edi, edi
inc edi
push edi
push str.DefaultInstance
push eax
mov ebx, 0x80000002
push ebx
call esi
test eax, eax
je 0x1002860b
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.100029d6
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.100029d6
xor al, al
call fcn.10035c18
ret
push 0x100547fc
lea ecx, [ebp - 0x2c]
call fcn.1000266a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002a3c
push str.387000
lea ecx, [ebp - 0x48]
call fcn.100028fc
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x10028641
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1002864d
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x34]
add edx, edx
push edx
push ecx
push edi
push str.Altitude
push eax
push ebx
call esi
test eax, eax
je 0x1002867e
xor bl, bl
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.100029d6
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.100029d6
mov al, bl
jmp 0x10028605
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1002868a
lea eax, [ebp - 0x28]
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 4
push str.Flags
push eax
push ebx
call esi
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x10028664
Function at 0x100286a5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
mov esi, ecx
call fcn.10035680
lea ebx, [esi + 0x48]
push ebx
call fcn.10029bab
add esp, 0x10
test al, al
je 0x1002872b
push ebx
call fcn.10029bf7
pop ecx
test al, al
jne 0x100287d2
mov ecx, esi
call fcn.10028562
push dword [esi + 0xa0]
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x64]
push eax
mov ecx, esi
call fcn.1002850e
push ebx
call fcn.10029da8
pop ecx
test al, al
je 0x100287d8
jmp 0x100287d4
cmp dword [esi + 0x78], 0
jne 0x10028793
push 0x104
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100287ef
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.drivers
lea eax, [ebp - 0x64]
push eax
call edi
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.10028459
cmp dword [eax + 0x18], 8
jb 0x10028770
mov eax, dword [eax + 4]
jmp 0x10028773
add eax, 4
push eax
lea eax, [ebp - 0x64]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.100029d6
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x64]
call fcn.100028fc
pop edi
push dword [esi + 0xa4]
lea eax, [esi + 0x80]
push dword [esi + 0xa0]
push dword [esi + 0x9c]
push dword [esi + 0xc]
push eax
lea eax, [esi + 0x64]
push eax
push ebx
call fcn.10029c67
add esp, 0x1c
test al, al
je 0x100287ef
mov ecx, esi
call fcn.10028562
push ebx
call fcn.10029da8
pop ecx
test al, al
je 0x100287ef
mov al, 1
mov byte [esi + 5], 1
mov ecx, dword [ebp + 0x1a4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10032a69
add ebp, 0x1a8
leave
ret
xor al, al
jmp 0x100287d8
Function at 0x1002886f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
cmp dword [esi + 0x14], ebx
je 0x10028932
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x10028932
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10028932
mov dword [ecx], ebx
mov dword [eax], ebx
cmp dword [esi + 0x18], 8
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
lea edi, [esi + 4]
jb 0x100288b9
mov eax, dword [edi]
jmp 0x100288bb
mov eax, edi
lea ecx, [ebp + 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp eax, ebx
jbe 0x10028931
push eax
call fcn.1003220e
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10028931
cmp dword [esi + 0x18], 8
jb 0x100288e2
mov edi, dword [edi]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10028928
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100547fc
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10028928
cmp dword [ebp - 8], ebx
jbe 0x10028924
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.1003323b
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x10028ac9
Capabilities:
Create thread
Get common file path
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
mov edi, dword [ebp + 0x1a8]
xor eax, eax
push 0x206
mov word [ebp - 0x70], ax
xor esi, esi
lea eax, [ebp - 0x6e]
push esi
push eax
call fcn.10035680
add esp, 0xc
push 0x102
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp + 0x1a4]
sub eax, esi
je 0x10028b39
dec eax
je 0x10028b32
xor al, al
jmp 0x10028c06
push str.drivers_fastfat.sys
jmp 0x10028b3e
push str.drivers_ntfs.sys
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push ebx
push 0xa8
push esi
push 0x1005f450
call fcn.10035680
push 0x6c
push esi
push edi
call fcn.10035680
mov eax, 0x1005f4f8
mov dword [0x1005f4fc], eax
mov dword [0x1005f4f8], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1002a779
mov ebx, eax
add esp, 0x24
cmp ebx, esi
jne 0x10028b8f
xor al, al
jmp 0x10028c05
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push 0x10028939
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x7c], eax
cmp eax, esi
je 0x10028bef
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10028bdc
mov ecx, 0x1005f488
mov eax, dword [ecx]
cmp eax, esi
je 0x10028bc5
sub eax, ebx
mov dword [ecx], eax
add ecx, 4
cmp ecx, 0x1005f4f8
jl 0x10028bbb
push 0x1b
pop ecx
mov esi, 0x1005f488
rep movsd dword es:[edi], dword [esi]
jmp 0x10028be6
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push ebx
call fcn.1002a75a
add esp, 0xc
call fcn.1002a2d0
mov al, 1
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.10032a69
add ebp, 0x19c
leave
ret

Function at 0x10028d6b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor eax, eax
and dword [ebp - 0xc], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 8]
push 0x11
stosd dword es:[edi], eax
pop edi
cmp dword [0x1005f274], eax
je 0x10028d95
push dword [ebp + 8]
call fcn.1002aaa1
pop ecx
jmp 0x10028dcf
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
je 0x10028dc7
mov eax, dword [ebp - 8]
cmp eax, 0xc000003e
jne 0x10028dce
push esi
call dword [sym.imp.ntdll.dll_NtDeleteKey]
pop esi
test eax, eax
jge 0x10028dd9
mov dword [0x1005f278], edi
pop edi
leave
ret