joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021a1a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x20
mov eax, 0x1004dbea
call fcn.10035d35
mov esi, dword [ebp + 8]
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x2c]
call fcn.10002683
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
push 0x1005f370
lea ecx, [ebp - 0x2c]
call fcn.10002a81
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x10021a59
mov esi, dword [esi + 4]
jmp 0x10021a5c
add esi, 4
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10021a68
lea ecx, [ebp - 0x28]
add eax, eax
push eax
push esi
push 3
push str.UserSID
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
neg esi
push 0
sbb esi, esi
push 1
lea ecx, [ebp - 0x2c]
inc esi
call fcn.10002a1b
mov eax, esi
call fcn.10035db8
ret 4

Function at 0x10021a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x1004ce91
call fcn.10035ccc
mov esi, dword [ebp + 0x230]
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor edi, edi
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.10035820
add esp, 0xc
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp]
mov dword [ebp - 0x10], edi
call fcn.10002683
push 0xffffffffffffffff
push edi
push 0x1005f370
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.10002a81
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov dword [ebp - 0x10], 0x208
jae 0x10021b16
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
push edi
push str.UserSID
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10021b74
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.10002941
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp]
call fcn.10002a1b
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 + 0x224]
xor ecx, ebp
call fcn.10032bd7
add ebp, 0x228
leave
ret 4
xor esi, esi
jmp 0x10021b42
Function at 0x10021b78
Capabilities:
Get disk information

Disassembly:
push 0x234
mov eax, 0x1004cecc
call fcn.10035d35
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x224], esi
xor ebx, ebx
cmp dword [ebp + 0x1c], 3
mov dword [ebp - 4], ebx
jae 0x10021bbf
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.100028ae
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.10002a1b
xor eax, eax
inc eax
call fcn.10035db8
ret 0x20
push 1
lea ecx, [ebp + 8]
call fcn.100131e6
cmp word [eax], 0x3a
jne 0x10021c98
push 2
lea ecx, [ebp + 8]
call fcn.100131e6
cmp word [eax], 0x5c
jne 0x10021c98
xor eax, eax
mov esi, 0x1005073c
lea edi, [ebp - 0x18]
push 0x206
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.10035820
add esp, 0xc
push ebx
lea ecx, [ebp + 8]
call fcn.100131e6
mov ax, word [eax]
mov word [ebp - 0x18], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10021c94
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
call fcn.10002941
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp + 8]
call fcn.100026fc
mov ecx, dword [ebp - 0x224]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.10002a81
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x240]
call fcn.10002a1b
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.10002a1b
mov eax, esi
jmp 0x10021bb7
xor esi, esi
jmp 0x10021c82
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.100028ae
xor esi, esi
inc esi
jmp 0x10021c82
Function at 0x10021cab
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x28
mov eax, 0x1004cf04
call fcn.10035ccc
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x24c]
mov dword [ebp - 0x18], eax
xor eax, eax
push 0x206
mov word [ebp + 0x38], ax
xor edi, edi
lea eax, [ebp + 0x3a]
push edi
push eax
call fcn.10035820
add esp, 0xc
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.10002d1a
mov esi, 0x104
push esi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._system32drivers_
push esi
lea eax, [ebp + 0x38]
push eax
call fcn.1000311f
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x1005f328
call fcn.100285c5
cmp dword [eax + 0x18], 8
jb 0x10021d40
mov eax, dword [eax + 4]
jmp 0x10021d43
add eax, 4
push eax
push esi
lea eax, [ebp + 0x38]
push eax
call fcn.1000311f
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.10002a1b
lea eax, [ebp + 0x1c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x18]
call fcn.10002683
mov ecx, dword [ebp - 0x10]
call fcn.10021b78
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp]
call fcn.10002683
push 0xffffffffffffffff
push edi
push 0x1005f370
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.10002a81
lea ecx, [ebp + 0x1c]
call fcn.1000b79c
lea eax, [ebp + 0x1c]
push eax
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.10002683
mov ecx, dword [ebp - 0x10]
call fcn.10021b78
push edi
push 1
lea ecx, [ebp]
call fcn.10002a1b
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.10002a1b
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.10032bd7
add ebp, 0x244
leave
ret 4
Function at 0x1002394b
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 0x10023968
cmp dword [ebp + 0x18], ebx
je 0x10023968
mov eax, dword [esi]
mov dword [ebp - 4], eax
jmp 0x1002396b
mov dword [ebp - 4], ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
call fcn.10023276
cmp eax, ebx
pop ecx
jge 0x10023988
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x10023ab2
cmp dword [ebp + 0x18], ebx
je 0x10023999
cmp esi, ebx
jne 0x10023999
push 0x57
pop ebx
jmp 0x10023aa1
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 0x100239cf
push 0xe
pop ebx
jmp 0x10023aa0
lea eax, [ebp + 8]
push eax
push esi
push edi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call fcn.10028fc9
mov esi, eax
add esp, 0x18
cmp esi, 0x80000005
jne 0x10023a02
and dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x18]
neg ebx
sbb ebx, ebx
and ebx, 0xea
jmp 0x10023a22
test esi, esi
jge 0x10023a22
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 0x10023a22
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10023a2e
mov ecx, dword [edi + 4]
mov dword [eax], ecx
test esi, esi
jl 0x10023a53
cmp dword [ebp + 0x18], 0
je 0x10023a53
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 4]
jb 0x10023a43
mov eax, dword [ebp - 4]
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x18]
call fcn.10033f90
add esp, 0xc
mov eax, dword [edi + 4]
cmp eax, 1
je 0x10023a65
cmp eax, 7
je 0x10023a65
cmp eax, 2
jne 0x10023a7c
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10023a7c
mov eax, dword [edi + 8]
cmp dword [ebp - 4], eax
jbe 0x10023a7c
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10023a8b
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 0x10023ab0
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
pop esi
pop ebx
leave
ret 0x18
Function at 0x10023f55
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 0x10023f6d
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.1002394b
mov dword [ebp - 8], eax
test eax, eax
je 0x10023f99
cmp eax, 0xea
jne 0x10024075
push ebx
mov ebx, dword [ebp + 0x18]
test esi, esi
je 0x1002404f
cmp ebx, 2
jne 0x1002405c
test edi, edi
je 0x10024006
cmp eax, 0xea
je 0x10024006
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 0x10023ff5
mov dword [ebp - 8], 0xea
mov edi, esi
cmp esi, eax
ja 0x10023ffd
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10024057
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.1002394b
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 0x10024046
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10024052
mov edi, dword [ebp - 4]
cmp ebx, 2
jne 0x1002405f
xor ebx, ebx
inc ebx
jmp 0x1002405f
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10024068
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
pop ebx
test eax, eax
je 0x10024072
mov dword [eax], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x18
Function at 0x10024c16
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.10027649
pop ecx
pop ecx
test eax, eax
je 0x10024d8d
cmp dword [ebp - 4], esi
je 0x10024d5e
mov ebx, dword [ebp - 4]
jmp 0x10024d5e
cmp word [ebp - 0x14], 0xe
mov eax, dword [ebp - 0x10]
mov edi, eax
jb 0x10024dbc
cmp word [eax + 0xa], 0x3a
jne 0x10024dbc
cmp word [eax + 0xc], 0x5c
jne 0x10024dbc
push 4
push str.___
push eax
call fcn.10035ec0
add esp, 0xc
test eax, eax
jne 0x10024dbc
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.10029906
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 0x10024d97
push ebx
call dword [sym.imp.ntdll.dll_RtlIsDosDeviceName_U]
test eax, eax
jne 0x10024dae
cmp edi, 0xc0000033
jne 0x10024d33
cmp dword [ebp - 0xc], esi
jne 0x10024db3
push 4
push 0x100509fc
push ebx
call fcn.100339c3
add esp, 0xc
test eax, eax
jne 0x10024db3
push 7
push str._UNC
push ebx
call fcn.100339c3
add esp, 0xc
test eax, eax
je 0x10024db3
add ebx, 8
jmp 0x10024d57
cmp edi, 0xc000003a
jne 0x10024db3
cmp dword [ebp - 0xc], esi
jne 0x10024db3
lea eax, [ebp - 8]
push eax
push ebx
call fcn.100277b0
pop ecx
pop ecx
test eax, eax
je 0x10024db3
mov ebx, dword [ebp - 8]
cmp ebx, esi
je 0x10024db3
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 0x10024c52
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
call fcn.100276e6
push dword [ebp - 4]
call fcn.100276e6
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
call fcn.100276e6
push dword [ebp - 4]
call fcn.100276e6
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
jmp 0x10024d90
push 0x20
pop esi
jmp 0x10024ddb
push edi
call fcn.100272a8
pop ecx
jmp 0x10024dd8
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.100276e6
push dword [ebp - 4]
call fcn.100276e6
pop ecx
pop ecx
mov eax, esi
jmp 0x10024d90
Function at 0x10024df1
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.10027649
pop ecx
pop ecx
test eax, eax
je 0x10024fe9
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x10024e25
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 1
jge 0x10024fcf
cmp dword [ebp + 0xc], esi
jl 0x10024fcf
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 0x10024f53
cmp word [ebp - 0x14], 0xe
mov eax, dword [ebp - 0x10]
mov edi, eax
jb 0x10024f9d
cmp word [eax + 0xa], 0x3a
jne 0x10024f9d
cmp word [eax + 0xc], 0x5c
jne 0x10024f9d
push 4
push str.___
push eax
call fcn.10035ec0
add esp, 0xc
test eax, eax
jne 0x10024f9d
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.100299cb
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 0x10024f57
cmp ebx, 0xc0000033
jne 0x10024f1e
cmp dword [ebp - 0xc], esi
jne 0x10024f94
push 4
push 0x100509fc
push dword [ebp + 8]
call fcn.100339c3
add esp, 0xc
test eax, eax
jne 0x10024f94
push 7
push str._UNC
push dword [ebp + 8]
call fcn.100339c3
add esp, 0xc
test eax, eax
je 0x10024f94
add dword [ebp + 8], 8
jmp 0x10024f47
cmp ebx, 0xc000003a
jne 0x10024f94
cmp dword [ebp - 0xc], esi
jne 0x10024f94
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.100277b0
pop ecx
pop ecx
test eax, eax
je 0x10024f94
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10024f94
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], 1
jmp 0x10024e2f
push 3
jmp 0x10024fd1
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 0x10024fb9
push ebx
call fcn.100272a8
pop ecx
jmp 0x10024fb9
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.100276e6
push dword [ebp - 8]
call fcn.100276e6
pop ecx
pop ecx
mov eax, esi
jmp 0x10024feb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call fcn.100276e6
push dword [ebp - 8]
call fcn.100276e6
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10025d5b
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.1000bb4e
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x10025e20
dec eax
jne 0x10025e23
push esi
push str.__c:
lea eax, [ebp - 0x1c]
push 7
push eax
call fcn.1000bb4e
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 0x10025e23
mov edi, 0x227
push edi
call fcn.1003237c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10025e23
push esi
push dword [ebp - 0x20]
mov dword [esi + 4], edi
call fcn.10024842
pop ecx
pop ecx
test eax, eax
je 0x10025e0e
cmp dword [esi + 0x1c], 7
jne 0x10025e0e
inc ebx
push esi
call fcn.10032bcc
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10025e23
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10032bd7
leave
ret
Function at 0x10026a44
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.10027649
pop ecx
pop ecx
test eax, eax
je 0x10026bff
cmp dword [ebp - 4], ebx
je 0x10026a79
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 0x10026bb3
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp word [ebp - 0x1c], 0xe
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
jb 0x10026bd2
cmp word [eax + 0xa], 0x3a
jne 0x10026bd2
cmp word [eax + 0xc], 0x5c
jne 0x10026bd2
push 4
push str.___
push eax
call fcn.10035ec0
add esp, 0xc
test eax, eax
jne 0x10026bd2
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
push eax
call fcn.10025d5b
pop ecx
test eax, eax
jne 0x10026bb7
lea eax, [ebp - 0x1c]
push eax
call fcn.1002963a
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 0x10026c08
cmp eax, 0xc0009999
je 0x10026c21
cmp eax, 0xc0000033
jne 0x10026b64
cmp dword [ebp - 0xc], ebx
jne 0x10026c28
push 4
push 0x100509fc
push esi
call fcn.100339c3
add esp, 0xc
test eax, eax
jne 0x10026c28
push 7
push str._UNC
push esi
call fcn.100339c3
add esp, 0xc
test eax, eax
je 0x10026c28
add esi, 8
jmp 0x10026b97
cmp eax, 0xc000003a
jne 0x10026c28
cmp dword [ebp - 0xc], ebx
jne 0x10026c28
lea eax, [ebp - 8]
push eax
push esi
call fcn.100277b0
pop ecx
pop ecx
test eax, eax
je 0x10026c28
mov esi, dword [ebp - 8]
cmp esi, ebx
je 0x10026c28
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 0x10026a95
push 3
jmp 0x10026be6
push ebx
add esi, 8
push 1
push esi
call fcn.1002665f
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.100276e6
push dword [ebp - 4]
call fcn.100276e6
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
leave
ret 4
push dword [ebp - 8]
call fcn.100276e6
push dword [ebp - 4]
call fcn.100276e6
mov dword [ebp - 0x14], 1
jmp 0x10026bfc
push 0xc000000d
jmp 0x10026c2b
push dword [ebp - 0x10]
call fcn.100272a8
push dword [ebp - 8]
call fcn.100276e6
push dword [ebp - 4]
call fcn.100276e6
add esp, 0xc
jmp 0x10026bfe
Function at 0x10027706
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 0x1002773a
xor eax, eax
jmp 0x1002779a
push 0x228
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x22c
call fcn.10035820
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10027797
push edi
mov edi, dword [ebp + 0x1bc]
cmp dword [ebp - 0x74], edi
je 0x1002777e
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10027769
jmp 0x10027796
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.10032bd7
add ebp, 0x1b4
leave
ret

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

Disassembly:
push 0x40
mov eax, 0x1004d181
call fcn.10035d35
mov esi, ecx
xor edi, edi
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
call fcn.10002683
push str.0001
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], edi
call fcn.10002683
push 0xffffffffffffffff
push edi
add esi, 0x48
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10002a81
push str.Instances
lea ecx, [ebp - 0x2c]
call fcn.100026af
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x1002872a
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10028736
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 0x10028777
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.10002a1b
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.10002a1b
xor al, al
call fcn.10035db8
ret
push 0x100547f4
lea ecx, [ebp - 0x2c]
call fcn.100026af
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002a81
push str.387000
lea ecx, [ebp - 0x48]
call fcn.10002941
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x100287ad
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100287b9
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 0x100287ea
xor bl, bl
push 0
push edi
lea ecx, [ebp - 0x48]
call fcn.10002a1b
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.10002a1b
mov al, bl
jmp 0x10028771
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100287f6
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 0x100287d0