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

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x1006a075
call fcn.10050c7c
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x146
add edi, 0x14c
push dword [edi]
mov dword [ebp - 4], ebx
call esi
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
mov dword [ebp - 0x10], eax
je 0x10015c62
call fcn.10011209
jmp 0x10015c64
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x158
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10015d62
cmp dword [ebp - 0x10], 0x14
jl 0x10015c9e
mov eax, dword [ebp - 0x10]
dec eax
push eax
mov ecx, edi
call fcn.100111d4
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x10015c7f
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015caf
call fcn.10011209
jmp 0x10015cb1
xor eax, eax
push eax
push ebx
push 0x14a
push dword [edi]
call esi
push 0x10097ea8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], SysReAllocString
call fcn.1000a663
lea ecx, [ebp - 0x14]
call fcn.10006388
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x10097ea8
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.10009b55
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
jle 0x10015d3c
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push 0x148
push dword [edi]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x10015d0b
lea ecx, [ebp - 0x14]
call fcn.10006388
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push 0x7fff0002
push eax
call dword [ecx + 0x50]
push ebx
push ebx
push 0x14e
push dword [edi]
call esi
jmp 0x10015d6a
push eax
mov ecx, edi
call fcn.100111a4
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10015d79
call fcn.10012207
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10050837
add ebp, 0x404
leave
ret 4
Function at 0x10016766
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi - 4], 0
push edi
je 0x100167a5
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov esi, 0x80041401
push esi
call fcn.10003294
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x10016862
cmp dword [ebp + 0xc], 0
jne 0x100167b7
mov dword [ebp - 8], 0x80004003
jmp 0x10016862
push dword [esi + 0x84]
mov edi, 0x1006fd78
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016816
inc ebx
mov eax, ebx
call fcn.10051b00
mov edi, esp
push ebx
push edi
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10016816
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100167fa
call esi
jmp 0x10016806
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x10016862
mov dword [ebp - 8], 0x80004005
jmp 0x10016862
call dword [0x1008f3d4]
test edi, edi
mov ebx, eax
je 0x10016834
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10016838
xor eax, eax
jmp 0x1001684b
lea eax, [esi + esi]
call fcn.10051b00
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10001958
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x10016872
mov dword [ebp - 8], 0x8007000e
push dword [0x1008c558]
push dword [ebp - 8]
call fcn.10003173
pop ecx
pop ecx
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050837
leave
ret 8

Function at 0x100168cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [esi - 4], 0
je 0x10016929
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov edi, 0x80041401
push edi
call fcn.10003294
add esp, 0xc
push dword [0x1008c558]
push edi
call fcn.10003173
pop ecx
pop ecx
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050837
leave
ret 4
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x10016913
inc ebx
mov eax, ebx
call fcn.10051b00
mov dword [ebp - 8], esp
push ebx
push dword [ebp - 8]
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1001698a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1001696c
call esi
mov edi, eax
jmp 0x1001697c
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x10016905
mov edi, 0x80004005
jmp 0x10016905
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call fcn.10011a4b
lea ecx, [esi - 0xc8]
call fcn.10015c09
jmp 0x10016913
Function at 0x100182e5
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10051bb0
push 0xffffffffffffffff
push 0x1006a2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1c6b
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, edi
call fcn.10011cf1
mov esi, 0x400
push esi
lea eax, [ebp + 0x800]
push eax
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor ebx, ebx
cmp byte [ebp + 0x800], bl
je 0x100184e6
lea eax, [ebp + 0x800]
push 0x10091cf8
push eax
call fcn.100512f6
test eax, eax
pop ecx
pop ecx
jne 0x100183d2
push 0x1006fd78
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, vtable.Candeo::AboutDlg.0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x34]
call fcn.100182ae
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], esi
je 0x100184e6
push dword [ebp - 0x20]
call fcn.1004fef9
jmp 0x100184e6
lea eax, [ebp + 0x800]
push 0x10091c70
push eax
call fcn.100512f6
test eax, eax
pop ecx
pop ecx
jne 0x100183f5
mov ecx, edi
call fcn.10015da0
jmp 0x100184e6
push esi
lea eax, [ebp + 0xc00]
push eax
lea eax, [ebp + 0x800]
push eax
call fcn.1003415e
add esp, 0xc
cmp byte [ebp + 0xc00], bl
jne 0x1001842a
push 0x1006fd78
push dword [edi + 0x14c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x100184e6
push ecx
lea eax, [ebp + 0xc00]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.10011a4b
mov ecx, edi
call fcn.10015c09
push esi
lea eax, [ebp]
push eax
push esi
lea eax, [ebp + 0xc00]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push esi
lea eax, [ebp + 0xc00]
push eax
push esi
lea eax, [ebp]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [edi + 0x178]
push ebx
lea ecx, [ebp + 0xc00]
push ecx
push eax
call fcn.10019af6
add esp, 0xc
test eax, eax
je 0x10018493
xor eax, eax
inc eax
jmp 0x100184e8
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [0x1008edc0]
call fcn.10035b30
add esp, 0xc
test eax, eax
jne 0x100184bd
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
push dword [0x1008edc0]
call fcn.10035c00
pop ecx
pop ecx
cmp dword [0x100a17f0], ebx
je 0x100184e6
mov ecx, dword [edi + 0x60]
cmp ecx, ebx
je 0x100184e6
cmp dword [ecx + 0x60], ebx
je 0x100184e6
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x100184e1
cmp eax, dword [0x100a1830]
jne 0x100184e6
call fcn.10023c54
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.10050837
add ebp, 0x1004
leave
ret
Function at 0x1001d3f5
Capabilities:
Capture webcam image

Disassembly:
push 0
push dword [esp + 8]
push 0x419
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageA]
ret 4

Function at 0x100203c3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi - 4], 0
push edi
je 0x10020402
push str.err_CTB_E_OBJECTREMOVED
push 0x100a1ba4
mov esi, 0x80041401
push esi
call fcn.10003294
add esp, 0xc
mov dword [ebp - 8], esi
jmp 0x100204b9
cmp dword [ebp + 0xc], 0
jne 0x10020414
mov dword [ebp - 8], 0x80004003
jmp 0x100204b9
push dword [esi + 0x58]
mov edi, 0x1006fd78
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
test ebx, ebx
jle 0x1002046d
inc ebx
mov eax, ebx
call fcn.10051b00
mov edi, esp
push ebx
push edi
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x1002046d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10020451
call esi
jmp 0x1002045d
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 8], eax
jl 0x100204b9
mov dword [ebp - 8], 0x80004005
jmp 0x100204b9
call dword [0x1008f3d4]
test edi, edi
mov ebx, eax
je 0x1002048b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1002048f
xor eax, eax
jmp 0x100204a2
lea eax, [esi + esi]
call fcn.10051b00
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10001958
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jne 0x100204c9
mov dword [ebp - 8], 0x8007000e
push dword [0x1008e450]
push dword [ebp - 8]
call fcn.10003173
pop ecx
pop ecx
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050837
leave
ret 8
Function at 0x10028016
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x1008f414]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x28
mov eax, 0x1006b187
call fcn.10050c7c
mov eax, dword [ebp + 0x110]
mov ecx, dword [ebp + 0x118]
lea esi, [ebp + 0x11c]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x114]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
jne 0x10028077
mov dword [ebp - 0x10], 0x80004003
jmp 0x100281aa
cmp ecx, esi
je 0x1002806b
push 0x100a41f4
lea ecx, [ebp - 0x18]
call fcn.10011a98
mov dword [ebp - 4], esi
call dword [0x1008f3d4]
cmp word [ebp - 0x34], 8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
mov ebx, 0x3fffffff
jne 0x100280d4
cmp dword [ebp - 0x2c], esi
je 0x100280b5
push dword [ebp - 0x2c]
call edi
inc eax
cmp eax, ebx
jle 0x100280b9
xor eax, eax
jmp 0x100280fd
lea esi, [eax + eax]
mov eax, esi
call fcn.10051b00
mov eax, esp
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x2c]
push eax
call fcn.100098d9
jmp 0x100280fd
cmp word [ebp - 0x34], 1
jne 0x1002818e
lea eax, [ebp]
push 0x104
push eax
call fcn.10024ec7
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jl 0x10028195
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.10006af1
push dword [ebp - 0x14]
call edi
inc eax
cmp eax, ebx
jle 0x10028116
and dword [ebp - 0x14], 0
jmp 0x10028132
lea esi, [eax + eax]
mov eax, esi
call fcn.10051b00
mov eax, esp
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x14]
push eax
call fcn.100098d9
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
call edi
inc eax
cmp eax, ebx
jle 0x10028140
xor eax, eax
jmp 0x10028159
lea esi, [eax + eax]
mov eax, esi
call fcn.10051b00
mov eax, esp
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x20]
push eax
call fcn.100098d9
mov esi, dword [ebp - 0x18]
push 1
push esi
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push str.open
push dword [eax + 0x60]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
cmp eax, 0x20
lea ecx, [esi - 0x10]
jg 0x1002819f
mov dword [ebp - 0x10], 0x80004005
call fcn.10001b68
jmp 0x100281aa
mov dword [ebp - 0x10], 0x80070057
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10001b68
cmp dword [ebp - 0x10], 0
jge 0x100281ba
push dword [0x1008e61c]
push dword [ebp - 0x10]
call fcn.10003173
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10050837
add ebp, 0x108
leave
ret 0x1c
Function at 0x1002dc40
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1006b9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x1008f414]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x110]
test edx, edx
jle 0x1002dc98
mov ecx, dword [esi + 0x114]
test ecx, ecx
jle 0x1002dc98
mov eax, dword [esp + 0x64]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret 8
mov eax, dword [esp + 0x68]
mov dword [esp + 0x68], eax
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x64], 0
call fcn.1002dbd0
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], edx
call fcn.10033a40
mov eax, dword [esi + 0x64]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.10033bd0
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edi, [esi + 0xc0]
add esi, 0x70
push esi
lea edx, [esp + 0x78]
push edx
mov ecx, edi
call fcn.10033630
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.1002eea0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x64]
add eax, 4
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x10]
mov dword [esi], ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 4], eax
mov byte [esp + 0x5c], 0
call fcn.100337a0
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret 8

Function at 0x1002dd60
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x1006ba00
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x1008f414]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x64]
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0
call fcn.10033a40
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x64], 1
call fcn.1002dbd0
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x64]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], edx
call fcn.10033bd0
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
lea edi, [esi + 0xc0]
push edx
mov dword [esp + 0x58], eax
add esi, 0x70
push esi
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call fcn.10033630
push 0
push 0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.1002f1d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 0
call fcn.100337a0
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x54
ret 4
Function at 0x10035e50
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1006c0a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x1008f414]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
call fcn.10048570
cmp eax, 0xa
jne 0x10035e94
call fcn.10035cb0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret
mov eax, dword [0x100a1b8c]
push eax
lea ecx, [esp + 0x10]
call fcn.1004dc70
cmp byte [0x100a1a80], 0
je 0x10035f4e
push 0x100a1a80
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
cmp eax, 0xffffffff
push 0x100a1a80
setne bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10035f4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x10035ef6
push 0x100a1a80
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x2001f
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.1000639f
test eax, eax
mov eax, dword [esp + 8]
sete bl
test eax, eax
je 0x10035f2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004dca0
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004dca0
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret
Function at 0x100361b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c128
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1008f414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x100a41f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a41f4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
jne 0x10036204
xor eax, eax
jmp 0x1003621b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10036210
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.10006975
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.100360c0
mov edi, eax
add esp, 8
cmp edi, ebx
jl 0x100362c5
mov esi, dword [ebp - 0x14]
push 0x1006fd78
push esi
call fcn.100512f6
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x100362c8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100362c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10036288
lea edx, [ebp - 0x14]
push edx
push esi
call fcn.100360c0
mov edi, eax
add esp, 8
cmp edi, ebx
jge 0x10036242
jmp 0x100362c5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1003629a
call edi
mov edi, eax
jmp 0x100362aa
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x100362c8
mov edi, 0x80004005
jmp 0x100362c8
mov esi, dword [ebp - 0x14]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100362eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036840
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1006c1d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1008f414]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x100a41f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a41f4
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
push 0x104
push 0x100a1a80
mov dword [esp + 0x24], 0
call fcn.1000a41a
call fcn.10048570
cmp eax, 0xa
je 0x100368a3
xor esi, esi
jmp 0x100368d8
lea eax, [esp + 0xc]
push eax
push esi
call fcn.10036400
mov edi, dword [esp + 0x14]
mov esi, eax
add esp, 8
test esi, esi
jl 0x100368d8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100368d8
push edi
push 0x104
push 0x100a1a80
call fcn.1000a41a
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100368fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x10036ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006c2d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008f414]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [0x100a41f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x100a41f4
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov ecx, dword [0x100a1b88]
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push esi
push ebp
mov dword [esp + 0x30], esi
mov edi, ecx
call fcn.100481c0
cmp eax, 0x7a
jne 0x10036f85
mov ecx, dword [esp + 0x14]
add ecx, 1
push ecx
call fcn.100504d9
mov esi, eax
add esp, 4
test esi, esi
je 0x10036f85
lea edx, [esp + 0x14]
push edx
push esi
push ebp
mov ecx, edi
call fcn.100481c0
test eax, eax
je 0x10036fcf
push esi
call fcn.10050771
add esp, 4
mov esi, dword [esp + 0x2c]
push 0x1006fd78
mov ecx, esi
call fcn.10019ab5
lea eax, [ebx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10036fb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036fd4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.10006975
push esi
call fcn.10050771
mov esi, dword [esp + 0x1c]
add esi, 0xfffffff0
push esi
call fcn.1000249b
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 8
mov dword [edi], eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003702a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1003cac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1008f414]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov esi, dword [esp + 0x118]
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.10054f14
test eax, eax
push str.Toolbar_Uninstaller
push esi
setne bl
call fcn.10054f14
test eax, eax
push 0x100766d8
push esi
setne byte [esp + 0x23]
call fcn.10054f14
add esp, 0x18
test eax, eax
setne al
pop esi
test bl, bl
pop ebx
je 0x1003cb4d
cmp byte [esp + 3], 0
je 0x1003cb4d
test al, al
je 0x1003cb4d
mov eax, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10050837
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor eax, eax
call fcn.10050837
add esp, 0x10c
ret