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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0xc
pop eax
push eax
push 0x40
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
test ebx, ebx
je 0x100ee5a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push ebx
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp - 0x14], eax
jge 0x1002e1a
cmp eax, 0x80000005
je 0x1002e1a
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
je 0x1002e2b
cmp dword [ebp - 8], 0
ja 0x1002e4c
test eax, eax
je 0x1002e2b
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
jmp 0x1002c26
cmp dword [ebp - 0x10], 2
je 0x1002fa4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x100300c
xor eax, eax
jmp 0x1002c5d
push dword [ebp - 8]
push 0x40
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x100ee62
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002e7e
jmp 0x1002c48
cmp dword [ebp - 4], 0
je 0x1002e35
push 1
lea eax, [ebp + 0x12]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, 1
jbe 0x100ee82
lea eax, [ebx + ebx]
push eax
push 0x40
call edi
test eax, eax
mov dword [esi], eax
je 0x1003004
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, ebx
ja 0x100ee6a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002e45
jmp 0x100ee7a
push 8
pop esi
jmp 0x1002c52
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x1002e45
push 8
pop eax
jmp 0x1002c36
push 8
pop eax
jmp 0x1002c5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [esi], 0
jmp 0x1003004
lea ecx, [edi + edi]
jmp 0x100300f
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002e45
mov dword [eax], 2
jmp 0x1002e45
Function at 0x1002e7e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1002e99
test esi, esi
je 0x100ed90
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor eax, eax
test esi, esi
je 0x1002eae
mov eax, dword [esi]
push ebx
add eax, 0xc
push eax
push 0x40
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100ed98
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push ebx
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x1c], ecx
jl 0x10050f8
test esi, esi
je 0x1002ef5
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1002f2f
test ecx, ecx
jl 0x1002f18
test edi, edi
je 0x1002f18
mov ecx, dword [ebx + 8]
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x1c]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop ebx
pop edi
pop esi
leave
ret 0x18
mov edx, dword [ebx + 4]
mov dword [eax], edx
jmp 0x1002efc
cmp ecx, 0x80000005
jne 0x1002efc
jmp 0x1002eec
push 0x57
pop eax
jmp 0x1002f29
push 8
pop eax
jmp 0x1002f28

Function at 0x1005c01
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101b124]
mov dword [ebp - 4], eax
mov eax, dword [0x1005c5c]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1005c60]
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 8], eax
inc esi
mov word [ebp - 0xc], 0x41
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x100ec73
inc word [ebp - 0xc]
shl esi, 1
cmp word [ebp - 0xc], 0x5a
jbe 0x1005c2e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0100156d
leave
ret
or edi, esi
jmp 0x1005c41
Function at 0x1006dbe
Capabilities:
Install driver

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x24], 0
jne 0x1006de1
push esi
call fcn.01003295
test eax, eax
mov dword [ebp + 8], eax
jne 0x1006ea1
push ebx
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100e4db
push 0x1006ec8
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [esi + 8]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push 1
mov dword [ebp - 4], 0xa
call fcn.010015a6
test eax, eax
mov dword [ebp + 8], eax
jne 0x1006ea0
push edi
mov edi, 0x101b040
push edi
call dword [sym.imp.ntdll.dll_RtlReleaseResource]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtLoadDriver]
push 1
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.ntdll.dll_RtlAcquireResourceExclusive]
call fcn.010016b6
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, eax
pop edi
jl 0x100e4e7
inc dword [esi + 0x1c]
push esi
mov dword [esi + 0x2c], 4
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.01006374
pop ebx
mov eax, dword [ebp + 8]
pop esi
leave
ret 4
mov dword [ebp + 8], 8
jmp 0x1006ea0
cmp ecx, 0xc000010e
jne 0x100e4fb
mov dword [ebp + 8], 0x420
jmp 0x1006e7d
cmp ecx, 0xc000000e
jne 0x100e50f
mov dword [ebp + 8], 0x14
jmp 0x1006ea0
push ecx
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp + 8], eax
jmp 0x1006ea0
Function at 0x10077db
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100785e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1009fd2
push dword [0x101b2d4]
lea eax, [ebp - 8]
push edi
push eax
xor eax, eax
cmp ebx, edi
setne al
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x100ddc7
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100ddbc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10078be
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x10078c8
push dword [0x101b2d4]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100dde3
cmp eax, edi
jne 0x10078be
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100de03
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, 0x217
je 0x100785e
jmp 0x10078c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10078c8
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [ebp + 0x10]
push dword [0x101b2d4]
push 5
call fcn.0100633d
add esp, 0xc
jmp 0x100ddf9
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [0x101b2d4]
push 6
call fcn.0100633d
pop ecx
pop ecx
mov eax, 0x41d
jmp 0x10078c8
call ebx
jmp 0x10078c8
Function at 0x1007a49
Capabilities:
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x101b124]
push ebx
push esi
push edi
push 0xd
pop ecx
mov esi, 0x1007b24
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
movsw word es:[edi], word [esi]
xor eax, eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0
mov byte [ebp - 0x5e], 0
mov dword [ebp - 0x5c], 0x10000000
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x101b500]
push eax
push eax
push 1
lea eax, [ebp - 0x60]
push eax
call fcn.01007ce4
xor esi, esi
cmp eax, esi
jl 0x100dda3
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push 0x7530
push 8
push 0x1f40
push 1
push 6
push 0x40080003
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x70], 0xc
mov dword [ebp - 0x68], esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x100ddaf
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteSecurityObject]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100156d
leave
ret 0xc
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1007b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1007b07

Function at 0x1007bb0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
test esi, esi
jne 0x100eda0
mov eax, esi
pop esi
leave
ret 0x18
push esi
push dword [ebp + 0xc]
push 0x100edb8
push 2
call fcn.0100633d
add esp, 0x10
jmp 0x1007bee
Function at 0x1007f27
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
cmp eax, edi
jne 0x100da87
push edi
push edi
push edi
push 0x20
push dword [esi + 0x14]
mov eax, 0x1006294
push eax
push eax
call fcn.010060ea
test eax, eax
jne 0x100dab4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x4e20
push ebx
push dword [esi + 0x18]
call edi
cmp eax, 0x102
je 0x100da9e
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push eax
call dword [sym.imp.ntdll.dll_RtlDeregisterWait]
test eax, eax
jl 0x1007f3f
mov dword [esi + 0x1c], edi
jmp 0x1007f3f
push 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push dword [esi + 0x18]
call edi
jmp 0x1007f77
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x4e20
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1007f77

Function at 0x10082cb
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
push 0x1006b5c
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1008311
or dword [ebp - 0x1c], 8
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x100f31e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop esi
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f340
push 1
call fcn.0100633d
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [eax], esi
jmp 0x100832e
Function at 0x1008cf4
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov esi, 0x101b534
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or dword [0x101b54c], 4
test byte [0x101b54c], 8
je 0x100d659
call fcn.01008d31
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100d788
push 0x80000002
call fcn.01002cdf
test eax, eax
jne 0x1008d29
push ebx
push 0x410
push esi
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x100d77f
lea eax, [ebx + 0x208]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push esi
push 0x1002f90
push dword [ebp - 0xc]
call fcn.01002e7e
test eax, eax
je 0x100d6e1
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100d77f
cmp dword [ebp - 4], 1
je 0x100d6ed
cmp dword [ebp - 4], 2
jne 0x100d768
cmp dword [ebp - 4], 2
jne 0x100d70b
push edi
mov edi, 0x104
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
pop edi
ja 0x100d6d5
jmp 0x100d70e
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push 8
push esi
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x80
mov word [ebp - 0x34], si
mov word [ebp - 0x32], si
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100d768
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop ebx
jmp 0x1008d29
Function at 0x1008ea1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push ebx
push esi
lea esi, [eax + 0x30]
push esi
push 0x40
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100edec
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x100ee1f
push dword [ebp + 0x30]
mov edi, dword [sym.imp.ntdll.dll_NtQuerySecurityObject]
push esi
push esi
push 7
push dword [ebp + 8]
call edi
mov esi, 0xc0000023
cmp eax, esi
jne 0x100edf4
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xf
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x100edff
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x34]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp - 8]
ja 0x100ee0c
mov eax, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
shr ecx, 1
and word [eax + ecx*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x30
push 8
pop eax
jmp 0x1008fa1
mov eax, dword [ebp + 0x30]
and dword [eax], 0
jmp 0x1008f25
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x1008f25
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1008fa0
push eax
push 0x100ee34
push 1
call fcn.0100633d
add esp, 0xc
jmp 0x1008f96
Function at 0x1009116
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [edi + 0x18]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100edda
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov esi, eax
test esi, esi
jl 0x1009190
mov ecx, dword [ebx + 0xc]
lea eax, [ecx + 2]
cmp edi, eax
jb 0x100ede2
mov eax, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
shr ecx, 1
xor esi, esi
mov word [eax + ecx*2], si
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1009189
push 8
pop eax
jmp 0x1009189
mov esi, 0xea
jmp 0x1009180
Function at 0x10097f9
Capabilities:
Delete file
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x1009908
lea eax, [ebp - 0xc]
push eax
call esi
push 0x1009890
lea eax, [ebp - 0x14]
push eax
call esi
xor esi, esi
push esi
push 0x1009b96
push 0xf
lea eax, [ebp - 0xc]
push eax
call fcn.0100993f
push 0x18
pop ebx
push 0x40
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtDeleteFile]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
pop edi
pop esi
pop ebx
jge 0x1009b09
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x100988b

Function at 0x1009c24
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push edi
push 0x204022
mov dword [ebp - 0x18], eax
push 3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push 0x100180
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, edi
jl 0x1009ccf
push esi
push 4
push 0x28
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, edi
jl 0x1009cc3
mov eax, dword [ebp + 0xc]
test dword [ebp - 0x28], eax
je 0x1009cc3
not eax
and eax, dword [ebp - 0x28]
mov edx, eax
je 0x100f5fe
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], edx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop edi
leave
ret 8
mov edx, 0x80
jmp 0x1009c9f
Function at 0x100a3ac
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, dword [0x101b4f0]
mov dword [0x101b578], eax
mov eax, dword [0x101b4f4]
mov dword [0x101b57c], eax
mov eax, dword [0x101b4f8]
mov dword [0x101b580], eax
mov eax, dword [0x101b4fc]
mov dword [0x101b584], eax
mov eax, dword [0x101b500]
mov dword [0x101b588], eax
mov eax, dword [0x101b504]
mov dword [0x101b58c], eax
mov eax, dword [0x101b508]
mov dword [0x101b590], eax
mov eax, dword [0x101b50c]
mov dword [0x101b594], eax
mov eax, dword [0x101b510]
mov dword [0x101b598], eax
mov eax, dword [0x101b610]
mov dword [0x101b59c], eax
mov eax, dword [0x101b614]
mov dword [0x101b5a0], eax
mov eax, dword [0x101b618]
mov dword [0x101b5a4], eax
mov eax, dword [0x101b61c]
mov dword [0x101b5a8], eax
mov eax, dword [0x101b620]
mov dword [0x101b5ac], eax
mov eax, dword [0x101b624]
mov dword [0x101b5b0], eax
mov eax, dword [0x101b628]
xor esi, esi
mov dword [0x101b5b4], eax
mov eax, dword [0x101b62c]
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x101b5b8], eax
mov dword [0x101b5bc], 0x100b3a5
mov dword [0x101b5c0], 0x1016e5b
mov dword [0x101b5c4], 0x100a204
call fcn.0100a18d
mov dword [0x101b5c8], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100a4d2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x100fe15
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100fe20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a4c9
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x100a4bf