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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x10003677
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1000366c
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005a7f4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x100036cf
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x100036c6
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005a7f4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100036e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x1000374a
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x1005a7f4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10003940
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x1004e210], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor dword [0x1004e210], eax
push 0x1004622c
call ebx
test eax, eax
je 0x10003981
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003981
push 0x1004e210
call eax
mov ecx, dword [0x1004e210]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x1004e210], ecx
call edi
xor dword [0x1004e210], eax
push 0x1004622c
call ebx
test eax, eax
je 0x100039c7
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100039c7
push 0x1004e210
call eax
mov ecx, dword [0x1004e210]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push str._x_x
push 0x104
push 0x10059c60
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x10003a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003a5b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005ac04
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003a69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10003a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003ac0
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push eax
push 0x1005ac04
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10003ac0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003ace
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x100046c0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push 0x80000001
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100048b2
push 1
push str.url_i
lea ecx, [ebp - 0x220]
push 0x104
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
test eax, eax
je 0x100048a8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push edx
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100048a6
cmp dword [ebp - 0x10], eax
jne 0x1000479d
push 1
push eax
push eax
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], eax
call ebx
push 0
push 0xc
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xc
push str.IE_history:_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0xc
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push 0
push 0
push esi
mov dword [ebp - 4], 0
call ebx
push 0
push 1
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x10045b10
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100047e8
sub eax, edx
mov edi, eax
mov dword [ebp - 4], 0
je 0x1000483a
push 1
push 0
push 0
push esi
call ebx
push 0
push edi
push 0
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 4]
push edx
push edi
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
push 0
push edi
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push 0
push 0
push esi
mov dword [ebp - 8], 0
call ebx
push 0
push 2
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 8]
push edx
push 2
push 0x10045a7c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [ebp - 0x14]
inc eax
push eax
push str.url_i
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
test eax, eax
jne 0x10004726
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10006750
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x108], bl
call sub.MSVCRT.dll_memset
push 0x103
lea edx, [ebp - 0x20b]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 8], cx
mov byte [ebp - 0x20c], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp esi, ebx
je 0x1000680a
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov word [ebp - 8], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x108], cl
inc ecx
cmp ecx, 0x100
jl 0x100067c0
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x108], dl
inc eax
cmp eax, 0x20
jl 0x100067e7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x100067d2
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x108]
call fcn.10017c10
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x102
push ebx
push str.softwaremicrosoft
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000685a
cmp esi, ebx
je 0x1000684b
mov edx, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 1
push ebx
push 0x1005b118
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1000685a
mov eax, dword [ebp - 4]
push 0x1005b118
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x10006869
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x100068f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006a34
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
push ecx
push esi
push 0x1005b118
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006a34
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x100069a0
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x100069a0
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x100069c7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x100069b2
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10017c10
cmp byte [ebp - 0x214], 0
je 0x10006a34
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10006a34
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10006a34
push 0x104
lea edx, [ebp - 0x214]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10006a42
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10006a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
push 0xff
lea eax, [ebp - 0x10f]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
push 0x103
xor ecx, ecx
lea edx, [ebp - 0x213]
push esi
push edx
mov word [ebp - 0x10], cx
mov byte [ebp - 0x214], cl
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push esi
push str.softwaremicrosoft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006b94
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 8]
push eax
push esi
push 0x1005b118
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006b94
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10006b00
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10006b00
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10006b27
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10006b12
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10017c10
cmp byte [ebp - 0x214], 0
je 0x10006b94
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10006b94
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10006b94
push 0x104
lea edx, [ebp - 0x214]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10006ba2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10006bb5
push 0x80000001
call fcn.100068f0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor edi, edi
push 0x40c
lea eax, [ebp - 0x414]
push edi
push eax
mov dword [ebp - 0x418], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.10014af0
test eax, eax
jne 0x10006c08
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
call fcn.10014af0
test eax, eax
je 0x10006bf8
mov eax, dword [0x10059e84]
cmp eax, edi
je 0x10006c1f
push eax
call fcn.100063b0
test eax, eax
jne 0x10006cfe
mov dword [0x10059e80], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
xor esi, esi
call fcn.10006750
mov edi, edi
mov dword [0x1004e610], 0x45ae94b2
xor ebx, ebx
xor esi, esi
cmp ebx, 0x3e8
jge 0x10006c8d
cmp esi, 0x40
jge 0x10006c8d
call fcn.10006110
push 0
push 0
push eax
push 0x10006870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006c81
mov dword [ebp + esi*4 - 0x418], eax
jmp 0x10006c83
dec esi
dec ebx
inc ebx
inc esi
cmp ebx, 0x3e8
jl 0x10006c56
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x418]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
jmp 0x10006cb0
mov edi, dword [ebp + esi*4 - 0x418]
mov dword [ebp - 4], 0
test edi, edi
je 0x10006cde
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10006cde
test byte [ebp - 4], 2
jne 0x10006cde
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x40
jl 0x10006cb0
cmp dword [0x10059e80], 0
jne 0x10006cfe
cmp ebx, 0x3e8
jge 0x10006c40
jmp 0x10006c4c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10007210
cmp dword [ebp + 8], edi
je 0x10007210
cmp ebx, edi
je 0x10007210
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007205
push 1
push edi
push edi
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x100071db
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x100071de
mov edi, dword [ebp - 4]
mov dword [ebp + 8], 0
test esi, esi
je 0x10007205
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10007205
test byte [ebp + 8], 2
jne 0x10007205
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007220
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
test eax, eax
je 0x10007366
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007366
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x1000733f
cmp dword [ebp + 0xc], edi
je 0x1000727b
inc esi
xor edi, edi
test esi, esi
je 0x100072af
lea eax, [esi + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100072af
mov ecx, dword [ebp - 4]
push ecx
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], edi
test edi, edi
je 0x1000733c
cmp dword [ebp + 0xc], 0
je 0x100072c1
dec esi
mov dword [ebp + 0xc], 0
test esi, esi
je 0x10007311
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
push 0
push eax
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp + 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0xc], 0
jne 0x1000733c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10007335
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
mov dword [ebp + 0xc], 0
test ebx, ebx
je 0x10007366
lea ecx, [ebp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10007366
test byte [ebp + 0xc], 2
jne 0x10007366
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10007387
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, edi
jne 0x10007389
mov dword [ebx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007740
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test esi, esi
je 0x10007755
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x10007880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x213]
push ebx
push eax
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
mov byte [ebp - 0x214], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
push str.softwaremicrosoft
xor edx, edx
push ecx
mov word [ebp - 0x10], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100079db
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100079db
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10007930
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10007930
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10007957
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10007942
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10017c10
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007983
sub eax, edx
push esi
inc eax
xor esi, esi
cmp eax, ebx
je 0x100079bb
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x100079bb
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
cmp esi, ebx
je 0x100079da
lea eax, [ebp - 0x214]
mov edx, eax
sub esi, edx
jmp 0x100079d0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x100079d0
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100079e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10007b7e
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x213]
push ebx
push eax
xor edi, edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], ebx
mov byte [ebp - 0x214], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x101
push ebx
push str.softwaremicrosoft
xor edx, edx
push 0x80000001
mov word [ebp - 0x10], dx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007b6b
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007b6b
mov word [ebp - 0x10], 1
xor ecx, ecx
jmp 0x10007ac0
mov byte [ebp + ecx - 0x110], cl
inc ecx
cmp ecx, 0x100
jl 0x10007ac0
xor ecx, ecx
mov dl, byte [eax + str.6d3ad29879a90b4dd1b4f76e82166ca3]
xor byte [ebp + ecx - 0x110], dl
inc eax
cmp eax, 0x20
jl 0x10007ae7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10007ad2
lea eax, [ebp - 0x214]
push eax
mov ecx, eax
push ecx
mov edx, 0x104
lea eax, [ebp - 0x110]
call fcn.10017c10
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007b13
sub eax, edx
push esi
inc eax
xor esi, esi
cmp eax, ebx
je 0x10007b4b
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10007b4b
push edi
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
cmp esi, ebx
je 0x10007b6a
lea eax, [ebp - 0x214]
mov edx, eax
sub esi, edx
jmp 0x10007b60
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x10007b60
pop esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10007b79
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
pop ebx
jne 0x10007b93
mov eax, dword [ebp + 8]
push eax
push 0x80000002
call fcn.10007880
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4