joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052f57
Capabilities:
Get memory capacity

Disassembly:
push 0x5c
mov eax, 0x1008aaf1
call fcn.10085435
mov esi, ecx
mov ecx, dword [esi + 0x78]
mov eax, ecx
mov edx, dword [esi + 0x7c]
or eax, edx
mov dword [ebp - 0x5c], esi
jne 0x10053000
push 0x40
pop edi
xor ebx, ebx
mov dword [esi + 0x78], 0x48000
push edi
lea eax, [ebp - 0x58]
mov dword [esi + 0x7c], ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x10052fc9
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.PhotoBase.dll_public_virtual:_void___thiscall_Base::Exception::destructor_void_]
mov eax, 0x10052fbe
ret
push ebx
push 0x28
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.100855b0
push ebx
push 0x190
push edx
push eax
call fcn.100855f0
mov ecx, dword [esi + 0x78]
mov edi, edx
mov edx, dword [esi + 0x7c]
cmp edx, edi
jb 0x10052ff6
ja 0x10052ffa
cmp ecx, eax
ja 0x10052ffa
mov ecx, eax
mov edx, edi
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], edx
mov eax, ecx
call fcn.10085387
ret
Function at 0x10054bf4
Capabilities:
Get graphical window text

Disassembly:
push 0xa8
mov eax, 0x1008ad56
call fcn.10085435
mov eax, ecx
mov dword [ebp - 0x28], eax
push 0x43f
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x10054d66
and dword [ebp - 4], 0
lea edi, [ebp - 0x24]
mov esi, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10015daa
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.1005de5f
test eax, eax
js 0x10054d3d
push 1
push 0x10
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10054c72
mov edi, ebx
lea esi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x10054c76
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x10054c8c
push 0x8007000e
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push 0x3c
lea eax, [ebp - 0x78]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0x58], ebx
neg eax
mov ebx, dword [ebp - 0x28]
sbb eax, eax
mov dword [ebp - 0x78], 0xd
push 0x43f
and eax, 3
mov dword [ebp - 0x64], esi
push dword [ebx + 0x28]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x78]
push ecx
push edi
push 0x104d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x28], eax
test eax, eax
jns 0x10054cef
push 0x8000ffff
jmp 0x10054c86
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xa4], 0xf000
call fcn.1005dfb0
movzx eax, al
mov ecx, 0x1000
neg eax
push 0x43f
push dword [ebx + 0x28]
sbb eax, eax
and eax, ecx
add eax, ecx
mov dword [ebp - 0xa8], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0x28]
push 0x102b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10054d42
mov esi, dword [ebp - 0x2c]
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.10015dfc
jmp 0x10054d6b
mov edi, 0x8000ffff
mov eax, edi
call fcn.10085387
ret 0xc
Function at 0x10055979
Capabilities:
Hide graphical window

Disassembly:
push 0x3c
mov eax, 0x1008ae16
call fcn.10085435
mov esi, ecx
mov ebx, dword [ebp + 0x10]
sub esp, 0x10
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
call fcn.1002f923
test ebx, ebx
je 0x10055ac3
mov eax, dword [ebx + 0xc]
push eax
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edi, [esi + 0x28]
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x100559e3
push 0xfffffffffffffff0
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffdffff
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
mov ecx, edi
call fcn.10036da8
jmp 0x10055a36
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x10055a36
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x10055a36
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add edx, 0xfffffff6
push 5
push 0
add edx, ecx
add eax, 0xfffffff6
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x1c]
push 0
push edx
add eax, ecx
push eax
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi]
lea edx, [esi + 0x44]
call fcn.10056994
test eax, eax
js 0x10055acc
mov ecx, dword [edi]
lea edx, [esi + 0x48]
call fcn.10060971
mov ebx, eax
test ebx, ebx
js 0x10055acc
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi]
mov edx, dword [eax + 0x10]
mov dword [edx], ecx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x44]
push dword [ecx + 0x28]
mov ecx, esi
call fcn.1005590b
mov eax, dword [esi + 0x48]
mov ecx, esi
push dword [eax + 0x28]
call fcn.1005590b
mov eax, dword [esi + 0x44]
push 5
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x48]
push 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x48]
push 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebp - 4], 0
lea eax, [esi + 0x54]
push eax
push ecx
mov ecx, edi
call fcn.10056221
test eax, eax
jne 0x10055ac8
mov ebx, 0x80004005
test ebx, ebx
jns 0x10055af6
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x10055b18
mov eax, dword [0x1009e7a8]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov eax, ecx
or eax, edx
je 0x10055b18
push 0
push edx
push ecx
push 0xe
pop edx
mov ecx, 0x10009e38
call fcn.1002d14b
xor eax, eax
inc eax
call fcn.10085387
ret 0x10
Function at 0x10055d7f
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
push edi
mov edi, ecx
mov ecx, 0x1000d870
mov eax, dword [esi + edx*4 + 8]
cmp eax, dword [ecx + edx*4]
jne 0x10055e3c
inc edx
cmp edx, 4
jne 0x10055d94
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 4]
and dword [ebp - 4], 0
call fcn.10015fda
test eax, eax
js 0x10055e2f
push dword [ebp + 0x10]
mov eax, dword [edi + 0x48]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
setne bl
test eax, eax
je 0x10055e31
mov eax, dword [edi + 0x44]
push 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x44]
push 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x48]
push 1
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x48]
push 5
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
push 0x430
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [edi + 0x4c], esi
jmp 0x10055e31
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10055e3e
xor bl, bl
test bl, bl
jne 0x10055e52
push dword [esi + 0x18]
mov dword [esi + 0x1c], 0x8000ffff
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
movzx eax, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10055e5e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x48]
and dword [esi + 0x4c], 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x48]
push 0
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x54]
push 0x430
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esi + 0x44]
push 1
push dword [ecx + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0x44]
push 5
push dword [ecx + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop esi
ret
Function at 0x10055f9e
Capabilities:
Create thread

Disassembly:
push 0x2c
mov eax, 0x1008aeb8
call fcn.10085435
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push edi
push 1
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x10055fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
jmp 0x100560c9
push 1
push 0x14
mov dword [ebp - 4], edi
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1005600d
mov dword [ebx], 0x10003374
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
jmp 0x1005600f
mov ebx, edi
test ebx, ebx
je 0x1005608b
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push 0x10055ec0
push edi
push edi
mov dword [ebp - 0x20], edi
mov dword [ebx + 8], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10056084
push 0xffffffffffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push edi
push eax
push 2
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x10056073
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x100560c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x80004005
jmp 0x100560c0
mov edi, 0x80004005
jmp 0x10056090
mov edi, 0x8007000e
test ebx, ebx
je 0x100560c0
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x100a0bc0]
mov ecx, ebx
call esi
jmp 0x100560c0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.10085387
ret 8

Function at 0x10059936
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push esi
push eax
mov edx, SysReAllocString
mov esi, ecx
call fcn.1001eb84
cmp dword [ebp - 8], 3
jb 0x100599af
movzx ecx, word [esi]
cmp ecx, 0x61
jb 0x10059970
cmp ecx, 0x7a
jbe 0x10059979
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x100599af
push 0x3a
pop eax
cmp word [esi + 2], ax
jne 0x100599af
push 0x5c
pop edx
cmp word [esi + 4], dx
jne 0x100599af
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
sete al
jmp 0x100599b1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret
Function at 0x10059a81
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x1008b42b
call fcn.100853ff
mov esi, edx
mov edi, ecx
and dword [ebp - 4], 0
mov ebx, 0x1000af28
push 0
push ebx
mov ecx, esi
call fcn.10015d31
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.100599c0
mov edi, eax
push 0x104
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10015cd6
push dword [edi]
push 0x104
push eax
push ebx
push 0x1000d4b0
push 0x1000d46c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 2
mov ecx, dword [esi]
call fcn.10012c6e
push eax
mov ecx, esi
call fcn.10015d03
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
call fcn.10085364
ret

Function at 0x10059b0c
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x1008b44e
call fcn.100853ff
mov esi, edx
mov edi, ecx
and dword [ebp - 4], 0
mov ebx, 0x1000af28
push 0
push ebx
mov ecx, esi
call fcn.10015d31
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.100599c0
mov edi, eax
push 0x104
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10015cd6
push dword [edi]
push 0x104
push eax
push ebx
push 0x1000d4c8
push 0x1000d46c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 2
mov ecx, dword [esi]
call fcn.10012c6e
push eax
mov ecx, esi
call fcn.10015d03
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
call fcn.10085364
ret
Function at 0x1005bbe6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 0x34
mov eax, 0x1008b72b
call fcn.100853c9
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100a0bc0]
call esi
mov edi, eax
test edi, edi
js 0x1005bd52
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
call fcn.1005b9ac
mov edi, eax
test edi, edi
js 0x1005bd48
cmp word [ebp - 0x40], 0x40
jne 0x1005bd43
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
push ecx
push 0x1001011c
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x14]
call dword [0x100a0bc0]
call dword [esi + 0x14]
mov edi, eax
test edi, edi
js 0x1005bd37
cmp word [ebp - 0x30], 0x15
jne 0x1005bd32
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov edx, SysReAllocString
call fcn.1001eb84
mov edi, eax
test edi, edi
js 0x1005bd37
mov edi, dword [ebp - 0x14]
lea eax, [edi*2 + 0x12]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x1005bd24
mov eax, dword [ebp - 0x38]
lea edx, [edi + 1]
mov dword [esi], eax
lea ecx, [esi + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
push dword [ebp - 0x18]
call fcn.1001b46e
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
js 0x1005bd29
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
push 3
pop ecx
mov word [eax], cx
cmp dword [ebp - 0x14], ebx
jbe 0x1005bd1d
mov edi, dword [ebp - 0x14]
movzx ecx, byte [ebx + esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1000cfe0]
inc ebx
cmp ebx, edi
jb 0x1005bcff
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
not edx
mov dword [eax + 8], edx
jmp 0x1005bd29
mov edi, 0x8007000e
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1005bd37
mov edi, 0x80004005
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
jmp 0x1005bd48
mov edi, 0x80004005
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.10085378
ret
Function at 0x1005e1d4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x64
mov eax, 0x1008baf4
call fcn.10085435
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x44], esi
mov edi, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push 0x1000c9e0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005e34b
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edi
push eax
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1005e34b
cmp dword [ebp - 0x34], eax
je 0x1005e34b
cmp dword [ebp - 0x28], 0x7fffffff
jae 0x1005e34b
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [ebp - 0x28]
push 2
pop edx
inc eax
mul edx
push 1
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x1005e295
push 0x8007000e
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, ebx
mov dword [ebp - 0x38], ebx
cmp ecx, dword [ebp - 0x34]
jae 0x1005e318
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
inc eax
push ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push esi
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1005e30f
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x1005e30f
mov ecx, dword [ebp - 0x2c]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 8]
jb 0x1005e2fa
lea eax, [edi + 1]
push eax
call fcn.1005d287
test al, al
jne 0x1005e2f7
push 0x8007000e
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov ecx, dword [ebp - 0x2c]
shl edi, 4
lea esi, [ebp - 0x70]
add edi, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ecx + 4]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x38], ecx
jmp 0x1005e29a
test esi, esi
je 0x1005e324
push esi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov esi, dword [ebp - 0x2c]
jmp 0x1005e347
test ebx, ebx
js 0x1005e360
push 0x1005e0e0
push 0x10
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
test edi, edi
je 0x1005e36b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.10085387
ret
Function at 0x1005ebb4
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x28
mov eax, 0x1008bbd4
call fcn.100853ff
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 4
jbe 0x1005ebda
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005ebe6
cmp word [eax], di
jne 0x1005ebeb
mov eax, 0x1000c548
push eax
lea ecx, [ebp - 0x14]
call fcn.10015f77
push 0x1000c52c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10015f77
mov edx, eax
imul eax, esi, 0x28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax + 0x10004548]
call fcn.1005ee29
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.1001b2c9
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10015dfc
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push ecx
push ecx
push 0x2001f
push ecx
push ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push dword [ebp - 0x14]
push SysReAllocString
call fcn.10013245
test eax, eax
je 0x1005ec7c
movzx eax, ax
or eax, 0x80070000
push eax
jmp 0x1005ebd4
push ecx
push dword [ebx + 0x10]
lea ecx, [ebp - 0x28]
push 0x1000c6ac
call fcn.1002f923
test eax, eax
jne 0x1005ec6e
push ecx
push dword [ebx + 0x14]
lea ecx, [ebp - 0x28]
push 0x1000c6d0
call fcn.10013297
test eax, eax
jne 0x1005ec6e
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x28]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push edi
push 0x1000c72c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1005ec6e
mov eax, dword [ebx + 0x2c]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push edi
push 0x1000c774
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1005ec6e
mov eax, dword [ebx + 0x30]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push edi
push 0x1000c798
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1005ec6e
push 0x1000c7f4
push esi
lea ecx, [ebx + 0x34]
call fcn.1003d4eb
test eax, eax
js 0x1005ec76
push 0x1000c810
push esi
lea ecx, [ebx + 0x248]
call fcn.1003d4eb
test eax, eax
js 0x1005ec76
push 0x1000c750
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov al, byte [ebx + 0x28]
test al, al
je 0x1005ed6f
movzx eax, al
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push edi
push 0x1000c750
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1005ec6e
test esi, esi
je 0x1005ed7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
jmp 0x1005ed9f
mov eax, edi
call fcn.10085364
ret 8
Function at 0x100602c3
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 + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x100602e0
cmp dword [edi], 2
jae 0x100602e0
push 0x7a
pop eax
jmp 0x10060341
mov eax, dword [edi]
push ebx
add eax, eax
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [edi], ebx
push eax
push ebx
push 0x1000bdcc
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10060340
cmp dword [ebp - 8], 7
jne 0x10060335
mov ecx, dword [ebp - 4]
test esi, esi
je 0x1006033a
test cl, 1
jne 0x10060335
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x10060335
cmp word [esi + eax*2 - 2], bx
jne 0x10060335
cmp eax, 1
jbe 0x1006033a
cmp word [esi + eax*2 - 4], bx
je 0x1006033a
push 0xd
pop eax
jmp 0x10060340
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100613d2
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1009f6d4]
push esi
push edi
test eax, eax
jne 0x100613eb
call fcn.100614a7
test eax, eax
je 0x10061437
mov eax, dword [0x1009f6d4]
cmp eax, 1
jne 0x10061407
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10061437
jmp 0x1006147d
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x10061420
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1006147d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1006143b
xor eax, eax
jmp 0x1006147d
mov eax, dword [esi]
push dword [0x1009f6d4]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x10061461
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1006147d
lea edi, [esi + 0xff0]
push esi
push dword [0x1009f6d4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10061467
mov eax, esi
pop edi
pop esi
ret