joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012e8c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, eax
push edi
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1012e8ea
mov eax, 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov edx, eax
xor edi, edi
and edx, 1
je 0x1012e903
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
test al, 2
je 0x1012e90a
or edi, 2
test al, 4
je 0x1012e911
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x1012e91b
or edi, 0x10
test al, 0x20
je 0x1012e922
or edi, 0x20
test ecx, ecx
je 0x1012e92e
or edi, 0x40000000
jmp 0x1012e934
or edi, 0x80000000
or edi, 0x1000000
mov dword [esp + 0x14], edi
test edx, edx
jne 0x1012e94c
or edi, 0x800000
mov dword [esp + 0x14], edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp eax, 0x28
jbe 0x1012ea00
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x1012e9fc
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x1c], ecx
jbe 0x1012e9fc
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x1012e9f4
cmp eax, 0x454e
je 0x1012e9f4
cmp eax, 0x454c
je 0x1012e9f4
cmp eax, 0x4550
jne 0x1012e9fc
or dword [esp + 0x14], 0x400000
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1012ea0a
mov dword [eax], edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1012ea18
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x1012ea96
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.10139f90
mov dword [ebp + 4], edx
push 0
mov ecx, edi
sub ecx, 0xd53e8000
mov edx, esi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebp], eax
call fcn.10139f90
mov ecx, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [ebp + 0xc], edx
call fcn.10139f90
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x1012eac3
push esi
push edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.1012e850
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x24]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [ebx], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
Function at 0x1012eb70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x1012ec4b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x1012eba4
cmp dword [esi + 0x40], edi
jae 0x1012eba4
push eax
call fcn.1012fc21
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x1012ebbb
lea eax, [edi + edi]
push eax
call fcn.1012fc96
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.10137d10
add esp, 0xc
cmp edi, ebp
jbe 0x1012ec47
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10143c58]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10143c58]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x1012ebd0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x1012ec84
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1012ec6c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.10137d10
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1012eca5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x1012ef50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x1012ef9e
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x1012efdb
sub edi, eax
cmp edi, edx
jbe 0x1012ef74
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.10137d10
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.1012e610
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x1012efd4
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1012efdb
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.1012e610
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x1012fc12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101cc040]
jne 0x1012fc1c
repz ret
jmp fcn.101305d6

Function at 0x10138575
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101326a4
and dword [ebp - 4], 0
cmp dword [0x101ce184], 0
mov ebx, eax
jne 0x10138626
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101386d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101386d7
push eax
call fcn.10132632
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101ce184], eax
call esi
push eax
call fcn.10132632
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101ce188], eax
call esi
push eax
call fcn.10132632
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101ce18c], eax
call esi
push eax
call fcn.10132632
pop ecx
mov dword [0x101ce194], eax
test eax, eax
je 0x10138626
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10132632
pop ecx
mov dword [0x101ce190], eax
mov eax, dword [0x101ce190]
cmp eax, ebx
je 0x1013867e
cmp dword [0x101ce194], ebx
je 0x1013867e
push eax
call fcn.101326ad
push dword [0x101ce194]
mov esi, eax
call fcn.101326ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1013867e
test edi, edi
je 0x1013867e
call esi
test eax, eax
je 0x10138675
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10138675
test byte [ebp - 0xc], 1
jne 0x1013867e
or dword [ebp + 0x10], 0x200000
jmp 0x101386b7
mov eax, dword [0x101ce188]
cmp eax, ebx
je 0x101386b7
push eax
call fcn.101326ad
pop ecx
test eax, eax
je 0x101386b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101386b7
mov eax, dword [0x101ce18c]
cmp eax, ebx
je 0x101386b7
push eax
call fcn.101326ad
pop ecx
test eax, eax
je 0x101386b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101ce184]
call fcn.101326ad
pop ecx
test eax, eax
je 0x101386d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101386d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4120cb
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
imul eax, dword [ecx]
jo 0x4120f4
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
jo 0x4120f4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 0xc
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x412559
Capabilities:
Reference sql statements

Disassembly:
jmp dword [sym.imp.MSVBVM60.DLL___vbaFPException]
push ebp
mov ebp, esp
push 0x1c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
and word [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
and dword [ebp - 8], 0
jmp 0x41258b
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
jo 0x412665
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jg 0x41264d
push dword [ebp - 8]
push dword [0x41c0a0]
call sub.MSVBVM60.DLL___vbaDerefAry1
cmp dword [eax + 0x18], 0
jle 0x412648
push dword [ebp - 8]
push dword [0x41c0a0]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [ebp + 8]
fld qword [eax]
fsub qword [ecx]
fabs
fstp qword [ebp - 0x14]
fnstsw ax
test al, 0xd
jne 0x412660
fld qword [ebp - 0x14]
fcomp qword [0x4012f8]
fnstsw ax
sahf
jae 0x412648
push dword [ebp - 8]
push dword [0x41c0a0]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [ebp + 8]
fld qword [eax + 8]
fsub qword [ecx + 8]
fabs
fstp qword [ebp - 0x14]
fnstsw ax
test al, 0xd
jne 0x412660
fld qword [ebp - 0x14]
fcomp qword [0x4012f8]
fnstsw ax
sahf
jae 0x412648
push dword [ebp - 8]
push dword [0x41c0a0]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, dword [ebp + 8]
fld qword [eax + 0x10]
fsub qword [ecx + 0x10]
fabs
fstp qword [ebp - 0x14]
fnstsw ax
test al, 0xd
jne 0x412660
fld qword [ebp - 0x14]
fcomp qword [0x4012f8]
fnstsw ax
sahf
jae 0x412648
or word [ebp - 0xc], 0xffff
jmp 0x41264d
jmp 0x41257c
mov ax, word [ebp - 0xc]
not ax
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
leave
ret 8
jmp 0x4014dc
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x1002f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001624
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002fb5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push 0x10000002
push 0x1001610
push esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueA]
test eax, eax
jne 0x1002fac
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop esi
leave
ret 8

Function at 0x1003674
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x1003756
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x10036f1
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x1003741
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x1003760
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x1003741
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.0100365c
test eax, eax
je 0x1003760
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x1003760
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x10036a1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x1003759
Function at 0x100426a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0xfa7
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 4], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x10042d4
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push dword [ebp - 4]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], ebx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10042cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x100429c
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x1004348
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0xd
mov dword [ebp + 0x1fc], eax
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x208]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x14], 0x105
mov dword [ebp - 0x4c], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x48], 0xffffffff
je 0x10043f6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push dword [esi]
mov dword [ebp - 0x18], eax
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x208]
push 0x1074
push 0xfa7
push dword [esi]
call edi
push eax
call ebx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.010120d7
add ebp, 0x200
leave
ret 4
Function at 0x1004639
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x1004808
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x10047b0
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x10047b0
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x10046db
and word [ebp + 0x7e0], 0
jmp 0x10046fb
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.01004194
test eax, eax
jl 0x10047b0
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.01004428
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x10047b0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.01007c23
test eax, eax
jl 0x10047b0
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.01004194
test eax, eax
jge 0x10047b4
xor eax, eax
jmp 0x1004806
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.010120d7
add ebp, 0xa00
leave
ret 4
Function at 0x1004652
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x1004808
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x10047b0
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x10047b0
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x10046db
and word [ebp + 0x7e0], 0
jmp 0x10046fb
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.01004194
test eax, eax
jl 0x10047b0
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.01004428
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x10047b0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.01007c23
test eax, eax
jl 0x10047b0
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.01004194
test eax, eax
jge 0x10047b4
xor eax, eax
jmp 0x1004806
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.010120d7
add ebp, 0xa00
leave
ret 4
Function at 0x10057c7
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x10137f9
call fcn.010136c0
sub esp, 0x224
mov eax, dword [0x10171b0]
push esi
push edi
push 0xfa1
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
cmp eax, edi
je 0x100583e
cmp dword [esi], edi
jne 0x1005942
push 0x34
call fcn.010127b1
pop ecx
mov dword [ebp - 0x22c], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x100581f
push 3
mov ecx, eax
call fcn.0100e238
jmp 0x1005821
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi], eax
je 0x100583e
push eax
call fcn.0100e25c
test eax, eax
jge 0x1005845
push dword [esi]
call fcn.0100f379
mov dword [esi], edi
xor eax, eax
jmp 0x1005945
push 0x20019
call sym.mobsync.dll_RegGetHandlerTopLevelKey
cmp eax, edi
mov dword [ebp - 0x22c], eax
je 0x10058e0
push ebx
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x228]
push ecx
push edi
mov dword [ebp - 0x230], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push eax
jmp 0x10058cb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x10058b1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call fcn.0100e28a
test eax, eax
jne 0x10058b1
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push dword [esi]
call fcn.0100ef38
inc dword [ebp - 0x230]
push ebx
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x100587b
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
pop ebx
lea eax, [ebp + 8]
push eax
push 3
push dword [esi]
call fcn.0100eefa
jmp 0x1005911
push edi
push edi
push 0x100
push edi
push dword [ebp + 8]
push dword [esi]
call fcn.0100efd2
lea eax, [ebp + 8]
push eax
push 3
push dword [ebp + 8]
push dword [esi]
call fcn.0100e549
test eax, eax
je 0x10058ef
lea eax, [ebp + 8]
push eax
push 5
push dword [esi]
call fcn.0100eefa
jmp 0x100593e
push dword [ebp + 8]
push dword [esi]
call fcn.0100f39b
lea eax, [ebp + 8]
push eax
push 5
push dword [ebp + 8]
push dword [esi]
call fcn.0100e549
test eax, eax
je 0x1005924
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.010120d7
leave
ret 8
Function at 0x1006d9e
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x10171b0]
push ebx
push esi
push 4
pop esi
push dword [ebp + 0x3b0]
mov dword [ebp + 0x3a4], eax
push 0x105
lea eax, [ebp + 0x198]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
call fcn.01004194
test eax, eax
jge 0x1006de9
xor eax, eax
jmp 0x1006e89
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jl 0x1006de2
push ebx
push 0x20019
push esi
mov word [ebp + eax*2 + 0x190], bx
call fcn.01009459
mov esi, eax
cmp esi, ebx
je 0x1006de2
push edi
push 0x104
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc dword [ebp - 0x7c]
mov edi, eax
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1006e48
cmp edi, ebx
je 0x1006e15
jmp 0x1006e4c
cmp edi, ebx
je 0x1006e57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1006e88
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x10
push 0x1001944
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x1006e79
mov dword [ebp - 0x78], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x78], ebx
setne al
pop edi
mov ecx, dword [ebp + 0x3a4]
pop esi
pop ebx
call fcn.010120d7
add ebp, 0x3a8
leave
ret 4