joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c233
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10013b30
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1000b885
xor edi, edi
cmp eax, edi
jl 0x1000c3eb
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1000c3f8
pop ecx
test eax, eax
pop ecx
jne 0x1000c27e
mov eax, 0x80020009
jmp 0x1000c3eb
mov ecx, esi
call fcn.1000b85d
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1000b885
cmp eax, edi
jl 0x1000c3eb
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1000c3b3
sub eax, 9
je 0x1000c318
dec eax
dec eax
jne 0x1000c3da
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x1000c2c3
xor ebx, ebx
jmp 0x1000c2f8
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10013b30
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1000c3cb
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1000c354
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10013b30
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1000c35e
mov eax, 0x80004005
jmp 0x1000c3eb
cmp dword [ebp - 8], 0
jle 0x1000c398
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1000c47f
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1000c364
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1000c3da
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1000b885
cmp eax, edi
jl 0x1000c3eb
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000ce87
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
xor ebx, ebx
push 1
push 8
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], bl
mov byte [ebp - 3], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1000cee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1000cf2f
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000cf2f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push 0x400
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1000cf2f
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 8]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1000cf33
xor eax, eax
jmp 0x1000cf70
xor esi, esi
cmp dword [ebp - 0x414], ebx
push edi
jbe 0x1000cf64
lea edi, [ebp - 0x410]
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000cf61
inc esi
add edi, 8
cmp esi, dword [ebp - 0x414]
jb 0x1000cf44
jmp 0x1000cf64
push 1
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e91f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1000e954
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1000e954
push dword [edi + 0xc]
call esi
push eax
call sub.MFC42.DLL_CFileException::ThrowOsError
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x10011ef6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
push edi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x100603c0
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call esi
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.1000a311
add esp, 0x1c
test eax, eax
je 0x10011f50
push 1
pop eax
jmp 0x10011fa3
call fcn.1002ca20
test eax, eax
je 0x10011fa1
push dword [ebp + 0x14]
lea eax, [ebp - 0x30c]
push dword [ebp + 0x10]
push str._s__s
push eax
call esi
lea eax, [ebp - 0x30c]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.1000a311
add esp, 0x1c
test eax, eax
je 0x10011fa1
lea eax, [ebp - 0x104]
push 5
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x10011fa3
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10012031
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x10012056
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10011ffc
add esp, 0xc
mov edi, eax
jmp 0x10012059
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x100120c6
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x100120ba
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001208e
cmp eax, 2
je 0x1001208e
cmp eax, 6
je 0x1001208e
cmp eax, 7
jne 0x100120ba
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x100120ba
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x100120ba
cmp edi, dword [ebp + 8]
je 0x100120b5
push edi
call fcn.1001201f
pop ecx
push 1
pop eax
jmp 0x100120c8
cmp edi, dword [ebp + 8]
je 0x100120c6
push edi
call fcn.1001201f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100120cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and byte [ebp - 0x110], 0
push esi
push edi
push 0x43
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push esi
push eax
push 0x100604b0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10012031
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x18
test eax, eax
jne 0x10012171
and byte [ebp - 0x214], al
push 0x40
pop ecx
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and byte [ebp - 0x212], 0
lea eax, [ebp - 0x214]
push str.Program_FilesCommon_Files
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x111], 0x5c
pop ecx
pop edi
pop esi
je 0x1001219d
lea eax, [ebp - 0x110]
push 0x10060430
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push 0x100628a0
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x14
push 1
pop eax
leave
ret

Function at 0x100121cb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
je 0x100121f5
movzx eax, al
shr eax, 4
and eax, 1
jmp 0x10012263
and byte [esp + 0x10], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x11]
push 0x5c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
push ebp
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10012254
sub eax, ebp
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1001224a
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10012250
inc esi
push 0x5c
push esi
jmp 0x10012211
xor eax, eax
jmp 0x10012263
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x1001226e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.100120cd
pop ecx
test eax, eax
pop ecx
je 0x100122e2
lea eax, [ebp - 0x104]
push eax
call fcn.100121cb
test eax, eax
pop ecx
je 0x100122e2
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100122e6
xor eax, eax
jmp 0x10012309
lea eax, [ebp - 0x104]
push str.winrdgv3.exe
push eax
lea eax, [ebp - 0x208]
push str.bakrdgv3.sys
push eax
call fcn.10011ef6
add esp, 0x10
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x1001230d
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push dword [0x10062854]
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100124f3
push esi
push edi
push 4
lea eax, [ebp - 0xc]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push eax
push edi
push ebx
push str.Type
mov dword [ebp - 0xc], 0x110
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push str.Start
push dword [ebp - 4]
mov dword [ebp - 0xc], 2
call esi
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push str.ErrorControl
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call esi
and byte [ebp - 0x114], bl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x114]
push str.Windows_Helper_Service
push eax
mov dword [ebp - 8], ebx
call edi
pop ecx
lea eax, [ebp - 0x114]
pop ecx
push dword [ebp - 8]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x114]
push str.OcularServices
push eax
mov dword [ebp - 8], ebx
call edi
pop ecx
lea eax, [ebp - 0x114]
pop ecx
push dword [ebp - 8]
push eax
push 1
push 0
push str.Group
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x114]
push str.LocalSystem
push eax
mov dword [ebp - 8], ebx
call edi
pop ecx
lea eax, [ebp - 0x114]
pop ecx
push dword [ebp - 8]
push eax
push 1
push 0
push str.ObjectName
push dword [ebp - 4]
call esi
and byte [ebp - 0x218], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
call fcn.100120cd
pop ecx
test eax, eax
pop ecx
je 0x100124e8
and byte [ebp - 0x31c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x31b]
and dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov edi, str.ImagePath
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
push str.winrdgv3.exe
push eax
lea eax, [ebp - 0x114]
push str.__s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x31c]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0x1c
test eax, eax
je 0x100124e8
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012896
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.10007e2f
test eax, eax
jne 0x100128bf
cmp esi, 0x2bf20
jb 0x10012a23
mov eax, dword [0x10070a84]
cmp esi, eax
jbe 0x100128d5
add eax, 0x2710
cmp esi, eax
jb 0x10012a23
push 1
mov dword [0x10070a84], esi
pop esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.10007e2f
test eax, eax
jne 0x100129cb
and byte [ebp - 0x10c], al
push 0x40
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.10007e18
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
add esp, 0xc
lea eax, [ebp - 0x10c]
mov edi, 0x100000
push eax
push 0
push edi
call esi
test eax, eax
jne 0x1001294b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10012952
and dword [ebp - 8], 0
jmp 0x10012952
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENTUDLL
call fcn.10007d86
add esp, 0xc
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
push ebx
push edi
call esi
cmp eax, ebx
jne 0x10012988
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1001298f
mov dword [ebp - 4], ebx
jmp 0x1001298f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_1
call fcn.10012a4d
pop ecx
test eax, eax
pop ecx
je 0x100129c7
push ebx
push str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_2
call fcn.10012a4d
pop ecx
test eax, eax
pop ecx
je 0x100129c7
push ebx
push str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_3
call fcn.10012a4d
pop ecx
test eax, eax
pop ecx
je 0x100129c7
push 1
pop esi
jmp 0x10012a31
xor esi, esi
jmp 0x10012a31
and byte [ebp - 0x10c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENTUSER
call fcn.10007d86
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10012a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10012a23
call fcn.10012b7e
pop edi
pop esi
pop ebx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 8], ebx
jne 0x10012a41
cmp esi, ebx
jne 0x10012a23
call fcn.10012ac6
jmp 0x10012a23
cmp dword [ebp - 4], ebx
jne 0x10012a23
call fcn.10012b7d
jmp 0x10012a23
Function at 0x10012ac6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10055690
call fcn.10013ac0
sub esp, 0x210
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.100120cd
pop ecx
test eax, eax
pop ecx
je 0x10012b71
lea eax, [ebp - 0x21c]
push str.winrdgv3.exe
push eax
lea eax, [ebp - 0x118]
push 0x100603c0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0xffffffffffffffff
call fcn.1000cf79
and dword [ebp - 4], 0
cmp dword [0x10070a80], 0
je 0x10012b4c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10012b4c
lea eax, [ebp - 0x118]
push eax
call fcn.10011e0b
test eax, eax
pop ecx
jne 0x10012b5b
call fcn.1001226e
mov dword [0x10070a80], 1
call fcn.100124f6
call fcn.10012800
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000cfbe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x10019190
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x100191e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100191e9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x100191f0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x100191cd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100191eb
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x1001ef00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1001ef50
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1001ef50
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1001ef55
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1001ef3b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1001ef62
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x10029cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x10029cf1
lea edx, [esp + 0x1c]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x1c]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10029cf3
mov esi, edi
test esi, esi
je 0x10029d58
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10029d4d
cmp dword [esp + 0x20], 4
jne 0x10029d4d
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x10029d4d
cmp esi, edi
je 0x10029d3f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x10029d58
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10029d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x10029dc5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x10029dc5
cmp dword [esp + 0x18], 4
jne 0x10029dc5
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x10029dc9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x1002a060
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10055eff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x34]
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1002a0cd
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1002a0cf
mov esi, edi
test esi, esi
je 0x1002a199
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002a18e
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1002a111
cmp eax, 2
je 0x1002a111
cmp eax, 6
je 0x1002a111
cmp eax, 7
jne 0x1002a18e
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x1002a174
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
cmp esi, dword [esp + 0x14]
je 0x1002a169
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x1002a1ab
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0x10070a8c
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1002a199
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1002a1ab
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100135b2
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10