joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100483b
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov esi, ecx
push 0x3e8
push dword [esi + 8]
call ebx
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, 0x410
je 0x100486e
lea ecx, [esi + 0x118]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100488f
push eax
push 0x1001b48
push 0x1001e50
jmp 0x1004a7e
push 0x3e9
push dword [esi + 8]
call ebx
test eax, eax
je 0x10048aa
lea ecx, [esi + 0x518]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10048cb
push eax
push 0x1001b48
push 0x1001e30
jmp 0x1004a7e
push 0x3ea
push dword [esi + 8]
call ebx
test eax, eax
je 0x10048e6
lea ecx, [esi + 0x918]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0x918]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1004907
push eax
push 0x1001b48
push 0x1001e08
jmp 0x1004a7e
push 0x3eb
push dword [esi + 8]
call ebx
test eax, eax
je 0x1004922
lea ecx, [esi + 0xd18]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0xd18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1004943
push eax
push 0x1001b48
push 0x1001de8
jmp 0x1004a7e
push 0x3ec
push dword [esi + 8]
call ebx
test eax, eax
je 0x100495e
lea ecx, [esi + 0x1118]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0x1118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100497f
push eax
push 0x1001b48
push 0x1001dc0
jmp 0x1004a7e
push 0x3f3
push dword [esi + 8]
call ebx
test eax, eax
mov dword [esp + 0x10], eax
je 0x10049a4
push 0
push 0
push 0x147
push eax
call edi
mov word [esi + 0x1918], ax
mov ax, word [esi + 0x1918]
test ax, ax
jne 0x10049c1
push 0
push 0x1001b48
push 0x1001d9c
jmp 0x1004a7e
lea ecx, [esi + 0x1518]
push ecx
movzx eax, ax
push eax
push 0x148
push dword [esp + 0x1c]
call edi
push 0x3ed
push dword [esi + 8]
call ebx
test eax, eax
je 0x10049f6
lea ecx, [esi + 0x191a]
push ecx
push ebp
push 0xd
push eax
call edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x1004a0b
push 0
push 0x1001b48
push 0x1001d78
jmp 0x1004a7e
push 0x3ee
push dword [esi + 8]
call ebx
test eax, eax
je 0x1004a26
lea ecx, [esi + 0x1d1a]
push ecx
push ebp
push 0xd
push eax
call edi
lea eax, [esi + 0x1d1a]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1004a44
push eax
push 0x1001b48
push 0x1001d54
jmp 0x1004a7e
push 0x3f4
push dword [esi + 8]
call ebx
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
je 0x1004a67
push ebp
push ebp
push 0x147
push ebx
call edi
mov word [esi + 0x251a], ax
mov ax, word [esi + 0x251a]
cmp ax, bp
jne 0x1004a8b
push ebp
push 0x1001b48
push 0x1001d2c
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1004aa1
movzx eax, ax
add esi, 0x211a
push esi
push eax
push 0x148
push ebx
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10057e2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100594f
push edi
push 1
push 0
push 0x1001b78
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
push 0x10021ac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x10058af
test eax, eax
je 0x10058af
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0x10021a8
call eax
xor eax, eax
mov cl, byte [ebp + eax - 0x438]
mov byte [ebp + eax - 0x848], cl
inc eax
test cl, cl
jne 0x100584f
push 0x1002190
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x438]
push eax
call fcn.01007670
lea eax, [ebp - 0x438]
push eax
push 0x1002054
push dword [esi + 0xc]
call fcn.010076a1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x1002184
push dword [esi + 0xc]
call fcn.010076a1
add esp, 0x1c
jmp 0x100594e
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10021a8
call edi
xor eax, eax
mov cl, byte [ebp + eax - 0x438]
mov byte [ebp + eax - 0x848], cl
inc eax
test cl, cl
jne 0x10058ce
and byte [ebp - 0x845], cl
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x848]
push eax
call edi
push 0x1002190
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x438]
push eax
call fcn.01007670
lea eax, [ebp - 0x438]
push eax
push 0x1002054
push dword [esi + 0xc]
call fcn.010076a1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push eax
push 0x100217c
push dword [esi + 0xc]
call fcn.010076a1
add esp, 0x18
pop edi
pop esi
leave
ret

Function at 0x1005952
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x10d], 0
mov eax, 0x104
push eax
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x10021c0
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x214]
push eax
call fcn.01007670
lea eax, [ebp - 0x214]
push eax
push 0x1002054
push dword [esi + 0xc]
call fcn.010076a1
add esp, 0xc
pop esi
leave
ret
Function at 0x10059dc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push 0x10021dc
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x18]
push 0x100217c
push dword [esi + 0xc]
call fcn.010076a1
add esp, 0xc
pop esi
leave
ret
Function at 0x1005f92
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xa
push dword [ebp + 0xc]
xor esi, esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x1005fd7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x1005fd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x1005fd7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, esi
jne 0x1005fdb
xor eax, eax
jmp 0x1006020
push ebx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1005fff
xor eax, eax
jmp 0x100601f
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006016
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x1006cb3
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, 0x10134e8
push esi
mov dword [ebp - 4], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1006ce3
push 0x10025c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x10025c4
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add eax, esi
push eax
call ebx
lea eax, [ebp - 4]
push eax
push esi
call edi
add eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x1006d18
push 0x10025ac
push esi
call ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.01006026
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x42]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x1002590
push esi
call edi
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006d58
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd80
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.01004176
mov ecx, esi
call fcn.0100425f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
push 1
mov ebx, 0x1002648
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003f07
test eax, eax
je 0x1006db1
push 1
push ebx
lea ecx, [ebp - 0x10]
call fcn.01003e54
push eax
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x421], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x1006ddc
push 0x1002644
lea eax, [ebp - 0x420]
push eax
call ebx
push 1
push 0x1002640
lea ecx, [ebp - 0x10]
call fcn.01003f07
test eax, eax
lea ecx, [ebp - 0x10]
push 1
je 0x1006e00
push 0x1002640
call fcn.01003e54
jmp 0x1006e1b
push 0x100263c
call fcn.01003f07
test eax, eax
je 0x1006e15
call fcn.01006cb3
jmp 0x1006e1b
lea eax, [esi + 0x191a]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
lea ecx, [ebp - 0x420]
lea eax, [esi + 0x291c]
push ecx
push eax
call edi
push 0x1002634
lea eax, [esi + 0x291c]
push eax
call ebx
mov eax, dword [esi + 0x114]
sub eax, 0
lea ebx, [esi + 0x2d1c]
je 0x1006e79
dec eax
je 0x1006e72
dec eax
je 0x1006e6b
dec eax
je 0x1006e64
push 0x100262c
jmp 0x1006e7e
push 0x1002624
jmp 0x1006e7e
push 0x100261c
jmp 0x1006e7e
push 0x1002614
jmp 0x1006e7e
push 0x100260c
push ebx
call edi
push 1
push 0x1002608
lea ecx, [ebp - 0x10]
call fcn.01003f07
test eax, eax
jne 0x1006ea2
push ebx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push 0x1002604
lea ecx, [ebp - 0x10]
call fcn.01003f07
test eax, eax
lea eax, [ebp - 0x420]
je 0x1006ec2
push 0x10025fc
jmp 0x1006ec7
push 0x10025f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push 0x100263c
lea ecx, [ebp - 0x10]
call fcn.01003f07
test eax, eax
je 0x1006efb
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x420]
sub ecx, 4
and byte [eax + ecx], 0
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esi + 0x2d30], 1
mov ebx, eax
jne 0x1006f67
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x1006f32
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xd80]
push eax
call edi
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.01007775
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
call fcn.01003cac
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
cmp ebx, 0xffffffff
je 0x1006f27
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x970]
push 0x10025e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 4
push 0x1001b48
lea eax, [ebp - 0x970]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x1006f1a
cmp eax, 7
jne 0x1006f27
xor esi, esi
jmp 0x1006f58
Function at 0x10076a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x410
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100776e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0100932e
mov eax, dword [ebp + 8]
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100775a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007741
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [ebp - 8]
je 0x100773e
push 0x10027e4
push dword [ebp + 8]
call fcn.010076a1
pop ecx
pop ecx
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1007770
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10078f6
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push 0x1002834
mov esi, 0x1002824
push esi
mov ebx, ecx
call fcn.01005f92
test eax, eax
je 0x1007944
push edi
push 0
push 0x1002820
push 0x1002818
push esi
push esi
push 0
call fcn.01009661
add esp, 0x18
mov edi, 0x1002808
push edi
mov ecx, ebx
call fcn.0100784a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push esi
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x1007947
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push 0x1002864
mov esi, 0x1002854
push esi
mov ebx, ecx
call fcn.01005f92
test eax, eax
je 0x1007995
push edi
push 0
push 0x1002820
push 0x1002818
push esi
push esi
push 0
call fcn.01009661
add esp, 0x18
mov edi, 0x1002844
push edi
mov ecx, ebx
call fcn.0100784a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push esi
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x10079e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
mov esi, 0x400
push esi
push 8
mov edi, ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
lea eax, [edi + 0x114]
push eax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1002644
lea eax, [ebp - 0x410]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x410]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007ac1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10028a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea esi, [edi + 0x108]
mov ecx, dword [esi]
jne 0x1007aa4
push dword [ebp - 4]
call fcn.01007670
push dword [ebp - 4]
jmp 0x1007aaf
push dword [ebp + 8]
call fcn.01007670
push dword [ebp + 8]
push 0x1002054
push dword [esi]
call fcn.010076a1
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1008a41
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
push edi
mov esi, 0x410
xor edi, edi
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
call fcn.0100942f
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
jne 0x1008a71
xor eax, eax
jmp 0x1008b15
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008b0a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push edi
jmp 0x1008afd
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push dword [ebp + 8]
push 0x1002a8c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1002a94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1008aef
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.01008740
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x424]
push eax
call fcn.01008a41
inc dword [ebp - 8]
mov dword [ebp - 0xc], esi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x1008aa2
xor edi, edi
inc edi
pop ebx
push dword [ebp - 4]
call fcn.01009385
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1008b1b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, 0x410
push edi
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008b6f
push dword [ebp - 8]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1008b76
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x1008bfc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
jmp 0x1008bd1
push 0x1002a9c
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x1002a94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1008bb2
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.01008740
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.01008a41
inc dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
push dword [ebp - 4]
je 0x1008b84
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push dword [ebp - 0x10]
push ebx
call esi
push eax
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008c94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov esi, ecx
mov ebx, 0x400
push ebx
mov dword [ebp - 0x10], esi
call fcn.0100942f
pop ecx
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x414]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 1
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x1008cc9
lea edi, [ebp - 0x414]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1008cda
mov eax, dword [ebp + 8]
mov esi, 0x1002644
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008cee
lea edi, [ebp - 0x414]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008cfe
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
and ecx, 3
push 0x20019
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x1008d98
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1002b50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008d84
push edi
push 0x1002b40
call fcn.0100971a
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
add esi, 0x410
mov ecx, dword [esi]
push edi
call fcn.01007670
push edi
push 0x1002054
push dword [esi]
call fcn.010076a1
xor esi, esi
add esp, 0xc
inc esi
push edi
call fcn.01009385
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1008df1
push esi
push ebx
lea ecx, [ebp - 0x414]
push ecx
push esi
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, 0x1002b04
push esi
call fcn.0100971a
lea eax, [ebp - 0x414]
push eax
push 0x93
push 0x1002ad8
push 0x1002ac4
call fcn.0100971a
push esi
call fcn.0100971a
push dword [ebp - 8]
call fcn.01009385
add esp, 0x1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1008df8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, 0x410
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
je 0x1008e26
push edi
call fcn.0100942f
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x1008e2d
xor eax, eax
jmp 0x1008ec3
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1008eb8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
jmp 0x1008eab
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push dword [ebp + 8]
push 0x1002a8c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
call fcn.01008c94
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x424]
push eax
call fcn.01008df8
inc dword [ebp - 8]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x1008e5e
xor esi, esi
inc esi
pop ebx
push dword [ebp - 4]
call fcn.01009385
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1008ec9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push edi
mov esi, ecx
push 0x1002b88
push dword [esi + 0x410]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x410
call fcn.010076a1
push dword [ebp - 4]
call fcn.0100942f
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x1008f08
xor eax, eax
jmp 0x1008f74
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push edi
jmp 0x1008f67
push dword [ebp - 0xc]
lea eax, [ebp - 0x41c]
push 0x1002b5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
mov ecx, esi
call fcn.01008c94
lea eax, [ebp - 0x41c]
push eax
mov ecx, esi
call fcn.01008df8
inc dword [ebp - 8]
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x410
push dword [ebp - 8]
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x1008f1b
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret